kaios-types
    Preparing search index...

    Interface DOMApplicationsManager

    webapps-manage, homescreen-webapps-manage

    interface DOMApplicationsManager {
        onenabledstatechange:
            | ((this: DOMApplicationsManager, ev: Event) => any)
            | null;
        oninstall: ((this: DOMApplicationsManager, ev: Event) => any) | null;
        onuninstall: ((this: DOMApplicationsManager, ev: Event) => any) | null;
        addEventListener(
            type: string,
            callback: EventListenerOrEventListenerObject | null,
            options?: boolean | AddEventListenerOptions,
        ): void;
        applyDownload(app: DOMApplication): void;
        dispatchEvent(event: Event): boolean;
        extractManifest(blob: Blob): Promise<any>;
        getAll(): DOMRequest;
        getIcon(
            app: DOMApplication,
            iconID: string,
            entryPoint?: string,
        ): Promise<Blob>;
        import(blob: Blob): Promise<DOMApplication>;
        removeEventListener(
            type: string,
            callback: EventListenerOrEventListenerObject | null,
            options?: boolean | EventListenerOptions,
        ): void;
        setEnabled(app: DOMApplication, state: boolean): void;
        uninstall(app: DOMApplication): DOMRequest;
    }

    Hierarchy

    • EventTarget
      • DOMApplicationsManager
    Index

    Properties

    onenabledstatechange: ((this: DOMApplicationsManager, ev: Event) => any) | null
    oninstall: ((this: DOMApplicationsManager, ev: Event) => any) | null
    onuninstall: ((this: DOMApplicationsManager, ev: Event) => any) | null

    Methods

    • The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.

      MDN Reference

      Parameters

      • type: string
      • callback: EventListenerOrEventListenerObject | null
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns void

    • 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

      • event: Event

      Returns boolean

    • Parameters

      • blob: Blob

        The blob containing the application/manifest.

      Returns Promise<any>

      webapps-manage Extracts the manifest from a Blob.

    • Gets the icon of an application.

      Parameters

      • app: DOMApplication

        The application.

      • iconID: string

        The ID of the icon.

      • OptionalentryPoint: string

        Optional entry point.

      Returns Promise<Blob>

    • The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.

      MDN Reference

      Parameters

      • type: string
      • callback: EventListenerOrEventListenerObject | null
      • Optionaloptions: boolean | EventListenerOptions

      Returns void

    • Parameters

      • app: DOMApplication

        The application.

      • state: boolean

        The new enabled state.

      Returns void

      webapps-manage Sets the enabled state of an application.