foo-webview-sdk
    Preparing search index...

    Interface MenuGetMainMenuParams

    Parameters for menu.getMainMenu. Get the main menu as a tree. The host builds it from its menu tree, falls back to the Win32 menus (source: "v1-hmenu"), and as a last resort returns a flat command list (fallback: "flat-mainmenu-commands"). A source that cannot build a tree permits fallback; unreadable state in a built tree fails with OPERATION_FAILED instead of returning guessed availability. Root filtering keeps full command paths. Addressability is independent of enabled.

    interface MenuGetMainMenuParams {
        i18n?: boolean;
        locale?: string;
        root?: string;
        withAvailability?: boolean;
    }
    Index
    i18n?: boolean

    false turns the label translation off.

    true
    
    locale?: string

    Locale for displayLabel: auto keeps the host's labels; a zh or en tag translates common labels.

    "auto"
    
    root?: string

    Label or slash-separated path of a submenu to return instead of the whole menu. When nothing matches, the whole menu is returned with rootMatched: false.

    ""
    
    withAvailability?: boolean

    Add command counts to submenus.

    true