public abstract class PermissionsResultAction
extends java.lang.Object
| Constructor and Description |
|---|
PermissionsResultAction()
Default Constructor
|
PermissionsResultAction(android.os.Looper looper)
Alternate Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
onDenied(java.lang.String permission)
This method is called when a permission has been denied by
the user.
|
abstract void |
onGranted()
This method is called when ALL permissions that have been
requested have been granted by the user.
|
protected boolean |
onResult(java.lang.String permission,
int result) |
protected boolean |
onResult(java.lang.String permission,
com.anthonycr.grant.Permissions result)
This method is called when a particular permission has changed.
|
protected void |
registerPermissions(java.lang.String[] perms)
This method registers the PermissionsResultAction object for the specified permissions
so that it will know which permissions to look for changes to.
|
boolean |
shouldIgnorePermissionNotFound(java.lang.String permission)
This method is used to determine if a permission not
being present on the current Android platform should
affect whether the PermissionsResultAction should continue
listening for events.
|
public PermissionsResultAction()
public PermissionsResultAction(android.os.Looper looper)
looper - the looper that the callbacks will be called using.public abstract void onGranted()
public abstract void onDenied(java.lang.String permission)
permission - the permission that was denied.public boolean shouldIgnorePermissionNotFound(java.lang.String permission)
permission - the permission that doesn't exist on this
Android versionprotected final boolean onResult(java.lang.String permission,
int result)
protected final boolean onResult(java.lang.String permission,
com.anthonycr.grant.Permissions result)
permission - the permission that changed.result - the result for that permission.protected final void registerPermissions(java.lang.String[] perms)
perms - the permissions to listen for