Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Interface NotifierBackend

    Methods a notifier backend must implement. Mirrors the exports of the ui/ helper modules so the UI layer can plug them in directly:

    setNotifierBackend({ showError, showToast, showHelpOverlay, hideHelpOverlay, showLoadingIndicator, hideLoadingIndicator, });

    interface NotifierBackend {
        showError(message: string, options?: ErrorNotificationOptions): void;
        showToast(message: string, durationMs?: number): void;
        showHelpOverlay(bindings: RegisteredShortcutBindings): void;
        hideHelpOverlay(): void;
        showLoadingIndicator(): void | HTMLElement;
        hideLoadingIndicator(): void;
        clearError(): void;
        showSceneIdentityBanner?(kind: "changed" | "unreachable"): void;
        hideSceneIdentityBanner?(onlyKind?: "changed" | "unreachable"): void;
    }
    Index
    • Persistent scene-identity banner (see ui/scene-identity-banner.ts). Optional so existing minimal backends (tests, embedders) stay valid; calls then degrade to a silent no-op. show additionally warns when NO backend at all is registered (a user-visible message was dropped); hide never does — it only ever runs during teardown.

      Parameters

      • kind: "changed" | "unreachable"

      Returns void

    • Parameters

      • OptionalonlyKind: "changed" | "unreachable"

      Returns void