Classes | |
interface | OnPermissionsGrantedCallback |
Public Member Functions | |
void | ensurePermissions (Activity activity, OnPermissionsGrantedCallback callback) |
boolean | hasAllPermissions (Context context) |
void | onRequestPermissionsResult (int requestCode, String[] permissions, int[] grantResults) |
Call this from your activity's onRequestPermissionsResult() method. | |
void | setNotRequiredPermissions (List< String > permissions) |
Use this method to declare some permissions as not required. | |
void | setRequiredPermissions (@Nullable List< String > permissions) |
Use this method to declare the required permissions. | |
void setNotRequiredPermissions | ( | List< String > | permissions | ) |
Use this method to declare some permissions as not required.
When checking/requesting the permissions, these permissions will be excluded from the list of required permissions. Thus, they won't be checked/requested.
permissions |
void setRequiredPermissions | ( | @Nullable List< String > | permissions | ) |
Use this method to declare the required permissions.
If this method is not called or it's called with null permissions then the required permissions are taken from the app's AndroidManifest.xml file.
permissions |