public abstract class PermissionHandler
extends java.lang.Object
Created on 7/16/2017 on 3:42 PM
| Constructor and Description |
|---|
PermissionHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
onBlocked(android.content.Context context,
java.util.ArrayList<java.lang.String> blockedList)
This method will be called if some permissions have previously been set not to ask again.
|
void |
onDenied(android.content.Context context,
java.util.ArrayList<java.lang.String> deniedPermissions)
This method will be called if some of the requested permissions have been denied.
|
abstract void |
onGranted()
This method will be called if all of the requested permissions are granted.
|
void |
onJustBlocked(android.content.Context context,
java.util.ArrayList<java.lang.String> justBlockedList,
java.util.ArrayList<java.lang.String> deniedPermissions)
This method will be called if some permissions have just been set not to ask again.
|
public abstract void onGranted()
public void onDenied(android.content.Context context,
java.util.ArrayList<java.lang.String> deniedPermissions)
context - The application context.deniedPermissions - The list of permissions which have been denied.public boolean onBlocked(android.content.Context context,
java.util.ArrayList<java.lang.String> blockedList)
context - the application context.blockedList - the list of permissions which have been set not to ask again.Permissions.Options.sendDontAskAgainToSettings(boolean) has been
set to false, the user won't be sent to settings by default.public void onJustBlocked(android.content.Context context,
java.util.ArrayList<java.lang.String> justBlockedList,
java.util.ArrayList<java.lang.String> deniedPermissions)
context - The application context.justBlockedList - The list of permissions which have just been set not to ask again.deniedPermissions - The list of currently unavailable permissions.