Foundation API Reference
Foundation API Reference
/
io.esper.foundationsdk.runtimepermission
/
EsperRuntimePermissionManager
Esper
Runtime
Permission
Manager
@
ParametersAreNonnullByDefault
(
)
public
class
EsperRuntimePermissionManager
extends
AbstractManager
<
Service
>
Functions
Properties
Properties
PERMISSION_STATE_DEFAULT
Link copied to clipboard
public
final
static
int
PERMISSION_STATE_DEFAULT
The user can manage the permission through the UI.
PERMISSION_STATE_GRANTED
Link copied to clipboard
public
final
static
int
PERMISSION_STATE_GRANTED
The permission is granted to the app and also manageable through the app permission UI.
PERMISSION_STATE_REVOKED
Link copied to clipboard
public
final
static
int
PERMISSION_STATE_REVOKED
The permission is denied to the app and also manageable through the app permission UI.
Functions
get
Instance
Link copied to clipboard
public
static
EsperRuntimePermissionManager
getInstance
(
Context
context
)
set
Permission
State
Link copied to clipboard
@
MinApiLevel
(
value
=
ApiLevel.FIVE
)
public
void
setPermissionState
(
String
permission
,
int state
)