Runtime Permission Handler
Used to handle the runtime permissions since Android M. This component must persist across configuration changes because the permission request is partially handled by the OS.
Types
Functions
attach Listener
Link copied to clipboard
abstract fun attachListener(permissions: Array<out String>, listener: RuntimePermissionHandler.Listener)
Content copied to clipboard
Attaches an instance of Listener that will be notified about changes on the set of permissions requested. A RuntimePermissionHandler must handle multiple Listeners.
handle Runtime Permissions
Link copied to clipboard
Handle a group of permissions notifying the changes on the attached Listener. This method checks the state of the permissions before sending the request.