W3cubDocs

/Haxe JavaScript

PermissionStatus

package js.html

extends EventTarget

@:native("PermissionStatus") Available on js

The PermissionStatus interface of the Permissions API provides the state of an object and an event handler for monitoring changes to said state.

Documentation PermissionStatus by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Variables

onchange:Function

An event called whenever PermissionStatus.status changes.

read only state:PermissionState

Returns the state of a requested permission; one of 'granted', 'denied', or 'prompt'.

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/PermissionStatus.html