foo-webview-sdk
    Preparing search index...

    Interface WindowSetMicaParams

    Parameters for window.setMica. Enable or disable the Mica backdrop material on a window. If the effect cannot be applied immediately (such as while the window is hidden at startup), the configuration is still saved; the call fails with OPERATION_FAILED and includes result fields in the error response. Not supported in panel mode.

    interface WindowSetMicaParams {
        darkMode?: boolean;
        enabled?: boolean;
        variant?: string;
        windowId?: string;
    }
    Index
    darkMode?: boolean

    Dark (true) or light (false) backdrop; omitted, unchanged.

    enabled?: boolean

    true shows Mica; false removes the backdrop set through setMica or setAcrylic.

    true
    
    variant?: string

    mica-alt for the tabbed variant; any other value is mica.

    "mica"
    
    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.