foo-webview-sdk
    Preparing search index...

    Interface WindowGetModeSuccess

    Successful response from window.getMode.

    interface WindowGetModeSuccess {
        mode: "unknown" | "dui" | "standalone" | "cui" | "panel";
        panelMode: boolean;
        success: true;
        windowId: string;
    }
    Index
    mode: "unknown" | "dui" | "standalone" | "cui" | "panel"

    standalone, dui or cui; panel when the page is in a panel that could not be told apart, unknown for a panel of an unrecognized kind.

    panelMode: boolean

    Whether the page is in a DUI or CUI panel; false for the main window and popups.

    success: true

    Always true here; a failed call resolves with ApiFailure instead.

    windowId: string

    Id of the calling window: main for the main window, the popup's actual id, or the panel's id. A panel without an id reports panel; an unmatched caller reports main.