code: static void onPermissionsRequested(Collection<String> grantedPermissions,
        Collection<String> deniedPermissions) {
      /* Check against null values because sometimes the DexterActivity can call these internal
         methods when the DexterInstance has been cleaned up.
         Refer to this commit message for a more detailed explanation of the issue.
       */
      if (instance != null) {
        instance.onPermissionRequestGranted(grantedPermissions);
        instance.onPermissionRequestDenied(deniedPermissions);
      }
    }
docs: Method called when all the permissions has been requested to the user
  
  @param grantedPermissions Collection with all the permissions the user has granted. Contains
  values from {@link android.Manifest.permission}
  @param deniedPermissions Collection with all the permissions the user has denied. Contains
  values from {@link android.Manifest.permission}