GeoLeaf Core API - v3.0.0
    Preparing search index...
    InstallPrompt: {
        init(appName?: string): void;
        isInstallable(): boolean;
        _reset(): void;
    } = ...

    Android PWA install prompt controller.

    Type Declaration

    • init: function
      • Registers event listeners for beforeinstallprompt and appinstalled. Shows a banner when the browser signals the PWA is installable. Does nothing if the user has previously dismissed the prompt, and is idempotent (a second call does not stack a second set of global listeners).

        Parameters

        • appName: string = "GeoLeaf"

        Returns void

    • isInstallable: function
    • _reset: function
      • Registry destroy / test seam: detaches the global listeners, hides the banner and clears the deferred prompt so a re-init starts clean (S7.5 — no listener leak).

        Returns void