OptionalexpectThe node's path as menu.getContextMenu reported it. Give it with expectTarget: the item at id must have this path, and no other node may share it.
OptionalexpectThe targetKey that menu.getContextMenu reported. Give it with expectPath: the tracks resolved now must give the same key.
OptionalhandlesThe handles the menu was built with; see menu.getContextMenu.
The commandId of a context-menu node.
OptionalmodeThe mode the menu was built with; see menu.getContextMenu.
Parameters for
menu.runContextCommandById. Run the context-menu item whosecommandIdamenu.getContextMenucall reported. The menu is rebuilt frommodeandhandles, so pass thehandlesthat call used and themodeit reported, notautoagain. An id is a position in the rebuilt menu, not a name: an id past its end fails withNOT_FOUND, but when the tracks, the selection, the playing track or the installed components changed since, the same id can run another item without failing. PassexpectPathandexpectTargettogether to rule that out: the host then runs the item only when the rebuilt menu matches what that call reported, and otherwise fails without running anything, withdetails.reasonset:NOT_FOUND(targetChanged,commandChanged),MENU_MATCH_AMBIGUOUS(ambiguousPath),MENU_ITEM_DISABLED(disabled), orNOT_SUPPORTED(unsupportedTargetMode) formode: "playlist". Reopen the menu after such a failure. The call answers when the command returns: one that shows a modal dialog answers only after the dialog closes.