PermissMe
Snackbar
.Snackbar
that will take the user to
the app settings to toggle their permissionsSnackbar
Snackbar
PermissMe.Builder.setRequiredPermissions(String...)
and PermissMe.Builder.setOptionalPermissions(String...)
If the package already has the permissions granted, this will launch the destination intent usingPermissMe.Builder.setRequiredPermissions(String...)
and PermissMe.Builder.setOptionalPermissions(String...)
If the package already has the permissions granted, this will launch the destination activity class,
and set the bundle as the bundle of the destinationAcitivity.PermissMe.PermissionListener
that will provide callbacks when permissions are granted/denied.PermissMe.Builder.targetFragment(Fragment)
.PermissMe.Builder.launchActivityWithPermissions(Class, Bundle, Bundle)
needs to be launched to listen for resultRunnable
to the main threadPermissMe.PermissionListener.onSuccess()
will called even if optional
permissions are NOT granted.PermissMe.PermissionListener.onSuccess()
will be called iff
the required permissions are granted.PermissMe.Builder.requestCode(int)
is specified to
Fragment.startActivityForResult(Intent, int)
.PermissMe.Builder.setRequiredPermissions(String...)
and PermissMe.Builder.setOptionalPermissions(String...)
PermissionChecker.PERMISSION_GRANTED
.PermissMe.PermissionListener
to receive
callbacks about the grant/deny status of the permissions when the user takes an action.