Permissions

The Permissions interface of the Permissions API provides the core Permission API functionality, such as methods for querying and revoking permissions - Permissions.query - : Returns the user permission status for a given API.

MDN Reference

Functions

Link copied to clipboard
suspend fun query(permissionDesc: PermissionDescriptor): PermissionStatus

The query() method of the Permissions interface returns the state of a user permission on the global scope.

Link copied to clipboard