Get the permission mask of a permission.
The descriptor of the permission.
The permission mask of the permission.
A TypeError if the permission is not known to this store.
Get the access status of a permission.
The descriptor of the permission.
The access status of the permission.
A TypeError if the permission is not known to this store.
Check whether access to a permission is already allowed, without triggering a permission access request.
Access is considered allowed if the permission's access status is either
"ALLOWED"
, or
"GRANTED"
.
The descriptor of the permission to check.
Whether access to the permission is allowed.
A TypeError if the permission is not known to this store.
Check whether a permission is known to this store.
The descriptor of the permission to check.
Whether the permission is known to this store.
Check whether one permission descriptor matches another, according to this store.
The first descriptor to compare.
The second descriptor to compare.
Whether the descriptors match.
PermissionStoreParameters.isMatchingDescriptor for how to supply custom matching logic.
Request access to a permission, triggering a permission access request if necessary.
If the permission's access status is
"PROMPT"
, this will trigger a
permission access request and wait for the result before returning. The
result is determined by the current access request handler, which can be
changed by calling PermissionStore.setAccessRequestHandler.
Once any access request is completed, this function will return true
if
the permission's access status is either
"ALLOWED"
, or
"GRANTED"
.
The descriptor of the permission to request access to.
Whether access to the permission is allowed.
A TypeError if the permission is not known to this store.
Change the handler used for permission access requests.
The handler to use.
Set the access status of a permission.
This will also reset the dismissal count for the permission.
The descriptor of the permission.
The new access status.
A TypeError if the permission is not known to this store.
Subscribe to changes in permission access statuses.
A subscriber function that will be called when permission access statuses change.
A function to unsubscribe the subscriber.
A store for managing permission access.