foo-webview-sdk
    Preparing search index...

    Interface WindowSetAcrylicParams

    Parameters for window.setAcrylic. Enable or disable the Acrylic backdrop material on a window. If the effect cannot be applied immediately, 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 WindowSetAcrylicParams {
        darkMode?: boolean;
        enabled?: boolean;
        windowId?: string;
    }
    Index
    darkMode?: boolean

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

    enabled?: boolean

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

    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.