Liking cljdoc? Tell your friends :D
ClojureScript only.

web.permissions.Permissions

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
raw docstring

querycljs

(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`
sourceraw docstring

requestcljs

(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.
sourceraw docstring

revokecljs

(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 globalweb.permissions.Permissionsobjectnavigator.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`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close