OptionalbottomRows 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.
OptionalconfigMenu-wide options to change. customPosition is stored for later setContextMenu calls and does not affect this one.
OptionalplaybackRows 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.
OptionaltopRows of the top zone; omitted clears the zone.
Parameters for
tray.setMenuZones. Replace the user rows of all three zones in one call; a zone that is not given is cleared. Rows andconfigfollow the rules ofsetContextMenu, and nothing is stored,configincluded, when any row is rejected or the resource limits are exceeded. Use it when the whole menu changes, instead ofclearMenuItemsfollowed byappendMenuItems: the menu can open between separate calls and show only part of the update, and two such updates that interleave add their rows twice.