PermissionHandler

Interface for implementing custom permission handlers.

Inheritors

Functions

Link copied to clipboard
abstract fun canHandle(permission: String): Boolean

Checks whether the permission handler can handle the given permission.

open fun canHandle(permissions: List<String>): Boolean

Checks whether the permission handler can handle the given permissions.

Link copied to clipboard
abstract fun onHandleRequest(payload: Map<String, Any> = mapOf())

Called to handle a request if the permission is granted, prompts the user to enable the permission otherwise.