kaios-types
    Preparing search index...

    Interface DOMApplicationsRegistry

    webapps-manage, homescreen-webapps-manage

    interface DOMApplicationsRegistry {
        mgmt: DOMApplicationsManager;
        checkInstalled(manifestUrl: string): DOMRequest;
        getAdditionalLanguages(): Promise<MozMap<LanguageDesc[]>>;
        getInstalled(): DOMRequest;
        getLocalizationResource(
            language: string,
            version: string,
            path: string,
            dataType: LocaleResourceType,
        ): Promise<any>;
        getSelf(): DOMRequest;
        install(url: string, params?: InstallParameters): DOMRequest;
        installPackage(url: string, params?: InstallParameters): DOMRequest;
    }
    Index

    Properties

    webapps-manage, homescreen-webapps-manage

    Methods

    • Checks if an application is installed.

      Parameters

      • manifestUrl: string

        The URL of the manifest to check.

      Returns DOMRequest

    • Resolves to a different object depending on the dataType value.

      Parameters

      • language: string

        The language code.

      • version: string

        The version string.

      • path: string

        The path to the resource.

      • dataType: LocaleResourceType

        The type of data to retrieve.

      Returns Promise<any>