The Permissions interface of the Permissions API provides the Permission API functionality, such as methods for querying and permissions
The Permissions interface of the Permissions API provides the Permission API functionality, such as methods for querying and permissions
(query this permission-descriptor)
Method.
[Experimental]
The Permissions.query() method of the web.permissions.Permissions
returns the state of a user permission on the global scope.
navigator.permissions.query(PermissionDescriptor).then(function(permissionStatus) { ... })
See also: https://developer.mozilla.org/en-US/docs/Web/API/Permissions/query
Method. [Experimental] The Permissions.query() method of the `web.permissions.Permissions` returns the state of a user permission on the global scope. `navigator.permissions.query(PermissionDescriptor).then(function(permissionStatus) { ... })` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Permissions/query`
(request this & args)
Method.
Requests permission to use a given API. This is not currently in any browser.
Method. Requests permission to use a given API. This is not currently in any browser.
(revoke this & args)
Method.
[Experimental]
The Permissions.revoke() method of the web.permissions.Permissions
reverts a currently set permission back to its default state,
is usually prompt.
This method is called on the global
web.permissions.Permissionsobject
navigator.permissions`.
var revokePromise = navigator.permissions.revoke(descriptor);`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Permissions/revoke
Method. [Experimental] The Permissions.revoke() method of the `web.permissions.Permissions` reverts a currently set permission back to its default state, is usually prompt. `This method is called on the global `web.permissions.Permissions` object `navigator.permissions`. var revokePromise = navigator.permissions.revoke(descriptor);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Permissions/revoke`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close