foo-webview-sdk
    Preparing search index...

    Interface MenuGetContextMenuSuccess

    Successful response from menu.getContextMenu.

    interface MenuGetContextMenuSuccess {
        i18n: boolean;
        items: MenuTreeNode[];
        locale: string;
        mode: "handles" | "playlist" | "nowPlaying" | "selection";
        success: true;
        targetKey?: string;
        withAvailability: boolean;
    }
    Index
    i18n: boolean

    The i18n used.

    items: MenuTreeNode[]

    The top-level nodes.

    locale: string

    The locale used.

    mode: "handles" | "playlist" | "nowPlaying" | "selection"

    The mode used; auto resolves to one of the others.

    success: true

    Always true here; a failed call resolves with ApiFailure instead.

    targetKey?: string

    A fingerprint of the tracks the menu was built for, to pass back as expectTarget. Absent for mode: "playlist". Opaque, and valid only while the host process runs.

    withAvailability: boolean

    The withAvailability used.