Base Permission Request
Base implementation of PermissionRequest that implements all the listeners' logic that must be the same to all its subclasses.
Constructors
BasePermissionRequest
Link copied to clipboard
Functions
add Listener
Link copied to clipboard
Adds a Listener which will be notified when the permissions request sent with send ends.
check Status
Link copied to clipboard
Checks the status of permissions of this request without sending it. Below API 23, this method and send should have the same behavior since the permissions status can be checked without sending a runtime request. Below API 23, the possible status are:
remove All Listeners
Link copied to clipboard
Removes all the listeners added to this request.
remove Listener
Link copied to clipboard
Removes a Listener added with addListener which should not be notified anymore.
send
Link copied to clipboard
Sends the PermissionRequest and performs the checks on its status. The result will be returned to the attached listeners.
Inheritors
ManifestPermissionRequest
Link copied to clipboard
RuntimePermissionRequest
Link copied to clipboard