foo-webview-sdk
    Preparing search index...

    Interface DiscoverySearchResult

    One search hit.

    interface DiscoverySearchResult {
        checked: boolean;
        description: string;
        enabled: boolean;
        executable: boolean;
        flags: number;
        guid: string;
        hidden: boolean;
        isDynamic: boolean;
        name: string;
        path: string;
        radioChecked: boolean;
        source:
            | "mainmenu_static"
            | "mainmenu_dynamic"
            | "contextmenu_static"
            | "contextmenu_dynamic"
            | "hmenu_fallback";
        stateKnown: boolean;
        subGuid?: string;
        type: "contextmenu"
        | "mainmenu";
        unaddressableReason:
            | ""
            | "separator"
            | "dynamicParent"
            | "noStableIdentifier"
            | "emptyNode";
    }

    Hierarchy

    • MenuNodeState
      • DiscoverySearchResult
    Index
    checked: boolean

    Whether the entry shows a check mark (a radio mark counts too).

    description: string

    Description; empty when the component has none.

    enabled: boolean

    Whether the entry can be clicked. Meaningless while stateKnown is false.

    executable: boolean

    Whether the entry can be executed.

    flags: number

    The raw display flags the component reported. Main menu: 1 disabled, 2 checked, 4 radio, 8 default-hidden. Context menu: 1 checked, 2 disabled, 4 grayed, 8 radio.

    guid: string

    Command GUID; for a dynamic child, the owning command's GUID.

    hidden: boolean

    Whether the host would not draw the entry.

    isDynamic: boolean

    Whether the hit was expanded from a dynamic submenu.

    name: string

    Label as the host reports it.

    path: string

    Slash-separated label path. A context-menu entry is registered flat, so its path is just its label.

    radioChecked: boolean

    Whether the check mark is a radio mark.

    source:
        | "mainmenu_static"
        | "mainmenu_dynamic"
        | "contextmenu_static"
        | "contextmenu_dynamic"
        | "hmenu_fallback"

    Where the entry came from.

    stateKnown: boolean

    Whether enabled and checked were observed. False when the state could not be evaluated, such as a context-menu entry with nothing selected or playing.

    subGuid?: string

    GUID of the dynamic child node; pass it with guid to discovery.executeMainMenuCommand.

    type: "contextmenu" | "mainmenu"

    Which menu family the hit belongs to.

    unaddressableReason:
        | ""
        | "separator"
        | "dynamicParent"
        | "noStableIdentifier"
        | "emptyNode"

    Why it cannot be executed; empty when it can.