kaios-types
    Preparing search index...

    Interface DOMApplication

    interface DOMApplication {
        downloadAvailable: boolean;
        downloadError: any;
        downloading: boolean;
        downloadSize: number;
        enabled: boolean;
        installOrigin: string;
        installState: string;
        installTime: number;
        lastUpdateCheck: number;
        manifest: any;
        manifestURL: string;
        ondownloadapplied: ((this: DOMApplication, ev: Event) => any) | null;
        ondownloadavailable: ((this: DOMApplication, ev: Event) => any) | null;
        ondownloaderror: ((this: DOMApplication, ev: Event) => any) | null;
        ondownloadsuccess: ((this: DOMApplication, ev: Event) => any) | null;
        onprogress: ((this: DOMApplication, ev: Event) => any) | null;
        origin: string;
        progress: number;
        readyToApplyDownload: boolean;
        receipts: string[];
        removable: boolean;
        updateManifest: any;
        updateTime: number;
        addEventListener(
            type: string,
            callback: EventListenerOrEventListenerObject | null,
            options?: boolean | AddEventListenerOptions,
        ): void;
        addReceipt(receipt?: string): DOMRequest;
        cancelDownload(): void;
        checkForUpdate(): DOMRequest;
        clearBrowserData(): DOMRequest;
        connect(keyword: string, rules?: any): Promise<MozInterAppConnection>;
        dispatchEvent(event: Event): boolean;
        download(): void;
        export(): Promise<Blob>;
        getConnections(): Promise<MozInterAppMessagePort[]>;
        getLocalizedValue(
            property: string,
            locale: string,
            entryPoint?: string,
        ): Promise<string>;
        launch(url?: string | null): DOMRequest;
        removeEventListener(
            type: string,
            callback: EventListenerOrEventListenerObject | null,
            options?: boolean | EventListenerOptions,
        ): void;
        removeReceipt(receipt?: string): DOMRequest;
        replaceReceipt(oldReceipt?: string, newReceipt?: string): DOMRequest;
    }

    Hierarchy

    • EventTarget
      • DOMApplication
    Index

    Properties

    downloadAvailable: boolean

    Whether a download is available.

    downloadError: any

    The error object if the download failed.

    downloading: boolean

    Whether the application is currently downloading.

    downloadSize: number

    The size of the download.

    enabled: boolean

    Whether the application is enabled.

    installOrigin: string

    The origin from which the application was installed.

    installState: string

    The current installation state.

    installTime: number

    The time the application was installed.

    lastUpdateCheck: number

    The time of the last update check.

    manifest: any

    The application manifest.

    manifestURL: string

    The URL of the manifest.

    ondownloadapplied: ((this: DOMApplication, ev: Event) => any) | null
    ondownloadavailable: ((this: DOMApplication, ev: Event) => any) | null
    ondownloaderror: ((this: DOMApplication, ev: Event) => any) | null
    ondownloadsuccess: ((this: DOMApplication, ev: Event) => any) | null
    onprogress: ((this: DOMApplication, ev: Event) => any) | null
    origin: string

    The origin of the application.

    progress: number

    The progress of the installation or update.

    readyToApplyDownload: boolean

    Whether the download is ready to be applied.

    receipts: string[]

    List of receipts associated with the application.

    removable: boolean

    Whether the application can be removed.

    updateManifest: any

    The update manifest, if available.

    updateTime: number

    The time of the last update.

    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

    • Exports the application as a Blob.

      Returns Promise<Blob>

    • Gets the localized value of a property.

      Parameters

      • property: string

        The property name.

      • locale: string

        The locale code.

      • OptionalentryPoint: string

        Optional entry point.

      Returns Promise<string>

    • 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

    • Replaces a receipt.

      Parameters

      • OptionaloldReceipt: string

        The old receipt.

      • OptionalnewReceipt: string

        The new receipt.

      Returns DOMRequest