foo-webview-sdk
    Preparing search index...

    Class MainMenuManager

    MainMenuManager — Main-menu (File / Edit / Playback / ...) wrapper.

    Backend mapping:

    • BuildMenu(menu, base_id, max_id) → menu.getMainMenu ({ root })
    • ExecuteByID(id) → menu.runMainMenuCommand ({ command })

    The root sub-menu (Init('File'), Init('Playback'), ...) is set once and forwarded to the host. Allocated ids map to the host-supplied guid (plus the node subGuid for a dynamic child). Explicitly unaddressable nodes remain unmapped; older hosts can supply a path instead. The commandId main-menu rows also carry is deliberately never used: it is a transient Win32 menu id that addresses nothing once the menu that produced it is gone.

    Index
    • Dispatch the previously-allocated menu id, or a raw command string. Returns false if the id cannot be mapped.

      Parameters

      • id: string | number

      Returns Promise<boolean>