PermissionStatus

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

MDN Reference

Properties

Link copied to clipboard
external val name: String

The name read-only property of the PermissionStatus interface returns the name of a requested permission.

Link copied to clipboard
Link copied to clipboard
external val state: PermissionState

The state read-only property of the PermissionStatus interface returns the state of a requested permission. This property returns one of 'granted', 'denied', or 'prompt'.

Functions

Link copied to clipboard
open external fun dispatchEvent(event: Event): Boolean
Link copied to clipboard
external fun <T : Event> when(type: EventType<T>, options: ObservableEventListenerOptions?): Observable<T>