public static enum PermissionsRequest.State extends Enum<PermissionsRequest.State>
Enum Constant and Description |
---|
ACCEPTED
The permissions request has been accepted by the user.
|
PENDING
The permissions request is pending and the user should be prompted for their preference.
|
REJECTED
The permissions request has been rejected by the user.
|
Modifier and Type | Method and Description |
---|---|
static PermissionsRequest.State |
forString(String value)
Given a web service key, returns the corresponding state.
|
String |
toString() |
static PermissionsRequest.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PermissionsRequest.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PermissionsRequest.State PENDING
public static final PermissionsRequest.State ACCEPTED
public static final PermissionsRequest.State REJECTED
public static PermissionsRequest.State[] values()
for (PermissionsRequest.State c : PermissionsRequest.State.values()) System.out.println(c);
public static PermissionsRequest.State 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 static PermissionsRequest.State forString(String value)
value
- the web service key for the given state.IllegalArgumentException
will be thrown
if there is no match.public String toString()
toString
in class Enum<PermissionsRequest.State>