foo-webview-sdk
    Preparing search index...

    Interface TraySetClickActionParams

    Parameters for tray.setClickAction. Set the process-wide left-click action, even before create. event is the default and emits the existing click events. toggleMainWindow hides a visible, non-minimized standalone main window, or shows, restores and requests focus otherwise, without page execution or the old click events. A double-click performs one toggle. Pending clicks are cancelled on every setter call; the latest successful caller wins. Shell recreation preserves this setting; destroy resets it. Fails with PANEL_MODE_UNSUPPORTED in panels. Remove legacy click handlers that issue window commands before enabling native actions; already queued page events cannot be recalled. The OS may refuse foreground activation.

    interface TraySetClickActionParams {
        action: "event" | "toggleMainWindow";
    }
    Index
    action: "event" | "toggleMainWindow"

    event sends clicks to pages; toggleMainWindow executes once natively per gesture.