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

    Register a beforeunload handler that tears the app down when the page is leaving. Routed through the supplied EventGroup so the listener is removed when the parent disposes.

    interface UnloadHandlerPorts {
        events: EventGroup;
        dispose: () => void;
    }
    Index
    events: EventGroup
    dispose: () => void