foo-webview-sdk
    Preparing search index...

    Interface WindowSetDarkModeParams

    Parameters for window.setDarkMode. Switch a window's backdrop between dark and light themes. If the change cannot be applied immediately, the configuration is still saved; the call fails with OPERATION_FAILED and includes enabled in the error response. Not supported in panel mode.

    interface WindowSetDarkModeParams {
        enabled?: boolean;
        windowId?: string;
    }
    Index
    enabled?: boolean

    true for the dark variant, false for the light one.

    true
    
    windowId?: string

    Target window: main or a popup id; omitted or empty, the calling window. There is no fallback to the main window: a caller that is not one of the plugin's windows fails with NOT_FOUND, and a DUI/CUI panel with PANEL_MODE_UNSUPPORTED.