@ThreadSafe public static enum PermissionCompat.PermissionStatus extends Enum<PermissionCompat.PermissionStatus>
| Enum Constant and Description |
|---|
GRANTED
The permission is granted and the app can use the permission.
|
NOT_GRANTED_BY_MANIFEST
The permission is missing from the Android Manifest, so the permission cannot be used
and
the permission cannot be requested at runtime.
|
NOT_GRANTED_BY_USER
The permission is not granted by the user, per the new permission APIs in Android
Marshmallow.
|
| Modifier and Type | Method and Description |
|---|---|
static PermissionCompat.PermissionStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PermissionCompat.PermissionStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PermissionCompat.PermissionStatus NOT_GRANTED_BY_MANIFEST
public static final PermissionCompat.PermissionStatus NOT_GRANTED_BY_USER
public static final PermissionCompat.PermissionStatus GRANTED
public static PermissionCompat.PermissionStatus[] values()
for (PermissionCompat.PermissionStatus c : PermissionCompat.PermissionStatus.values()) System.out.println(c);
public static PermissionCompat.PermissionStatus 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 null