@nextcloud/dialogs
    Preparing search index...

    Interface 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

    interface PermissionStatus {
        name: string;
        onchange: ((this: PermissionStatus, ev: Event) => any) | null;
        state: PermissionState;
        addEventListener<K extends "change">(
            type: K,
            listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any,
            options?: boolean | AddEventListenerOptions,
        ): void;
        addEventListener(
            type: string,
            listener: EventListenerOrEventListenerObject,
            options?: boolean | AddEventListenerOptions,
        ): void;
        dispatchEvent(event: Event): boolean;
        removeEventListener<K extends "change">(
            type: K,
            listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any,
            options?: boolean | EventListenerOptions,
        ): void;
        removeEventListener(
            type: string,
            listener: EventListenerOrEventListenerObject,
            options?: boolean | EventListenerOptions,
        ): void;
    }

    Hierarchy (View Summary)

    Index
    name: string

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

    MDN Reference

    onchange: ((this: PermissionStatus, ev: Event) => any) | null

    The state read-only property of the This property returns one of 'granted', 'denied', or 'prompt'.

    MDN Reference

    • The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.

      MDN Reference

      Parameters

      Returns boolean