public final class PermissionState extends Object
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
STATE_ALLOWED |
Allows a given caller to perform a given operation.
|
static int |
STATE_DEFAULT |
A given caller should use its default security check.
|
static int |
STATE_ERRORED |
A given caller is not allowed to perform a given operation,
and such an attempt should result in it having a fatal error,
usually a
SecurityException. |
static int |
STATE_FOREGROUND |
Special mode that means "allow only when app is in foreground".
|
static int |
STATE_IGNORED |
A given caller is not allowed to perform a given operation,
and the attempt should silently fail.
|
public static final int STATE_ALLOWED
public static final int STATE_DEFAULT
public static final int STATE_ERRORED
SecurityException.public static final int STATE_FOREGROUND
public static final int STATE_IGNORED