Ende.PermissionStatus
class
class Ende.PermissionStatus extends EventTargetAn EventTarget returned from the Ende.permissions
API which can provide updates to any state changes of the permission.
Properties
onchange
onchange: ((this: PermissionStatus, ev: Event) => any) | nullstate
readonly state: PermissionStatepartial
readonly partial: booleanDescribes if permission is only granted partially, eg. an access
might be granted to "/foo" directory, but denied for "/foo/bar".
In such case this field will be set to true when querying for
read permissions of "/foo" directory.
Methods
addEventListener
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): voidaddEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): voidremoveEventListener
removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): voidremoveEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void