code: private boolean checkPermissions(Activity activity) {
          String[] permissions = getRequiredAndroidPermissions();
          return handler.areAllPermissionsGranted(activity, permissions);
      }
docs: Checks if all the required Android Manifest.permissions have already been granted.
  
  @param activity a valid activity context.
  @return true if all the requested permissions are already granted, false otherwise.