Deno.PermissionStatus
An EventTarget
returned from the Deno.permissions
API which can provide updates to any state changes of the permission.
class PermissionStatus extends EventTarget { }
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
readonly partial: boolean;
addEventListener<K extends keyof PermissionStatusEventMap>(
type: K,
listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;removeEventListener<K extends keyof PermissionStatusEventMap>(
type: K,
listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;removeEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;§Properties
§
onchange: ((this: PermissionStatus, ev: Event) => any) | null
[src]§
partial: boolean
[src]Describes 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.
§
state: PermissionState
[src]§Methods
§
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void
[src]addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void
[src]§
removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void
[src]removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void
[src]