-
public abstract class PermissionHandlerThe class for handling permission callbacks.
Created on 7/16/2017 on 3:42 PM
-
-
Method Summary
Modifier and Type Method Description abstract voidonGranted()This method will be called if all of the requested permissions are granted. voidonDenied(Context context, ArrayList<String> deniedPermissions)This method will be called if some of the requested permissions have been denied. booleanonBlocked(Context context, ArrayList<String> blockedList)This method will be called if some permissions have previously been set not to ask again. voidonJustBlocked(Context context, ArrayList<String> justBlockedList, ArrayList<String> deniedPermissions)This method will be called if some permissions have just been set not to ask again. -
-
Method Detail
-
onGranted
abstract void onGranted()
This method will be called if all of the requested permissions are granted.
-
onDenied
void onDenied(Context context, ArrayList<String> deniedPermissions)
This method will be called if some of the requested permissions have been denied.
- Parameters:
context- The application context.deniedPermissions- The list of permissions which have been denied.
-
onBlocked
boolean onBlocked(Context context, ArrayList<String> blockedList)
This method will be called if some permissions have previously been set not to ask again.
- Parameters:
context- the application context.blockedList- the list of permissions which have been set not to ask again.
-
onJustBlocked
void onJustBlocked(Context context, ArrayList<String> justBlockedList, ArrayList<String> deniedPermissions)
This method will be called if some permissions have just been set not to ask again.
- Parameters:
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.
-
-
-
-