AndroidPermissionsManager
Convenience class for requesting a Permission and monitoring AndroidPermissionState
Parameters
The context for which to request the Permission
List of permissions to request. Should correspond to android.Manifest.permission.
the CoroutineScope to launch permission requests in.
The tag used for logging
The Logger used for logging
A AndroidPermissionStateHandler that will be notified of changes to AndroidPermissionState
Constructors
Properties
Functions
Starts to request the permissions. Ensure startMonitoring was called to get notified of the permission change. Sets the state to AndroidPermissionState.DENIED_DO_NOT_ASK if the permission cannot be requested.
Starts to request a specific subset of permissions. Ensure startMonitoring was called to get notified of the permission change. Sets the state to AndroidPermissionState.DENIED_DO_NOT_ASK if the permission cannot be requested. Useful when permissions must be requested in separate phases — e.g. Android requires the background location permission to be requested separately from, and after, foreground location on API 30+.
Starts monitoring for changes to the AndroidPermissionState.
Stops monitoring for changes to the AndroidPermissionState.