Package 

Class PermissionHandler


  • 
    public abstract class PermissionHandler
    
                        

    The class for handling permission callbacks.

    Created on 7/16/2017 on 3:42 PM

    • Method Summary

      Modifier and Type Method Description
      abstract void onGranted() This method will be called if all of the requested permissions are granted.
      void onDenied(Context context, ArrayList<String> deniedPermissions) This method will be called if some of the requested permissions have been denied.
      boolean onBlocked(Context context, ArrayList<String> blockedList) This method will be called if some permissions have previously been set not to ask again.
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.