public enum PermissionState extends Enum<PermissionState>
Added in daily build 2016.2828.
Enum Constant and Description |
---|
DENIED
Corresponds to android.content.pm.PackageManager.PERMISSION_DENIED
|
GRANTED
Corresponds to android.content.pm.PackageManager.PERMISSION_GRANTED
|
MISSING
Permission is missing from
AndroidManifest.xml.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Returns the constant value of the desired PermissionState.
|
static PermissionState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PermissionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PermissionState MISSING
Constant value: 1
public static final PermissionState DENIED
Constant value: -1
public static final PermissionState GRANTED
Constant value: 0
public static PermissionState[] values()
for (PermissionState c : PermissionState.values()) System.out.println(c);
public static PermissionState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()