public class RuntimePermissionChecker
extends java.lang.Object
PermissionsAwareComponent| Modifier and Type | Method and Description |
|---|---|
void |
checkPermissions()
Checks if the required permissions are already granted or informs the component
that permissions are required
|
void |
handlePermissionsResult(java.lang.String[] permissions,
int[] grantResults)
Does the validation whether all permissions were granted
Since the callback for requestPermissions comes to the component,
this method needs to be explicitly invoked to check the result
|
static RuntimePermissionChecker |
newInstance(PermissionsAwareComponent component)
Get a new instance of RuntimePermissionChecker
|
public static RuntimePermissionChecker newInstance(PermissionsAwareComponent component)
component - a componentpublic void checkPermissions()
public void handlePermissionsResult(java.lang.String[] permissions,
int[] grantResults)
permissions - permissions that were requestedgrantResults - grant result of permissions