RuntimePermissionHandler

interface RuntimePermissionHandler

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

Listener
Link copied to clipboard
interface Listener

Listener used to notify changed about the permissions' state.

Functions

attachListener
Link copied to clipboard
abstract fun attachListener(permissions: Array<out String>, listener: RuntimePermissionHandler.Listener)

Attaches an instance of Listener that will be notified about changes on the set of permissions requested. A RuntimePermissionHandler must handle multiple Listeners.

handleRuntimePermissions
Link copied to clipboard
abstract fun handleRuntimePermissions(permissions: Array<out String>)

Handle a group of permissions notifying the changes on the attached Listener. This method checks the state of the permissions before sending the request.