foo-webview-sdk
    Preparing search index...

    Interface TraySetMenuZonesParams

    Parameters for tray.setMenuZones. Replace the user rows of all three zones in one call; a zone that is not given is cleared. Rows and config follow the rules of setContextMenu, and nothing is stored, config included, when any row is rejected or the resource limits are exceeded. Use it when the whole menu changes, instead of clearMenuItems followed by appendMenuItems: the menu can open between separate calls and show only part of the update, and two such updates that interleave add their rows twice.

    interface TraySetMenuZonesParams {
        bottom?: TrayMenuItem[];
        config?: TrayMenuConfig;
        playback?: TrayMenuItem[];
        top?: TrayMenuItem[];
    }
    Index
    bottom?: TrayMenuItem[]

    Rows of the bottom zone; omitted clears the zone. The rows config.showSystemItems injects are not stored in the zone, so clearing it leaves them in place.

    config?: TrayMenuConfig

    Menu-wide options to change. customPosition is stored for later setContextMenu calls and does not affect this one.

    playback?: TrayMenuItem[]

    Rows of the playback zone; omitted clears the zone. The rows config.showPlaybackControls injects are not stored in the zone, so clearing it leaves them in place.

    top?: TrayMenuItem[]

    Rows of the top zone; omitted clears the zone.