UI.AddSubMenu represents a request from an application to add a sub-menu to the application's menu. This RPC can be sent to the HMI for an application that is registered and in any state (FULL, BACKGROUND, etc.)
menuParams.parentID
with the menu's menuID
.menuParams
.BC.OnResetTimeout
notification to SDL to reset the timeout in case HMI needs more time to process the request.As of Core 7.1, UI.AddSubMenu requests can contain all UI elements that were previously found in a Perform Interaction's Choice.
Name | Type | Mandatory | Additional |
---|---|---|---|
menuID | Integer | true | minvalue: 1 maxvalue: 2000000000 |
menuParams | Common.MenuParams | true | |
menuIcon | Common.Image | false | |
secondaryImage | Common.Image | false | |
appID | Integer | true | |
menuLayout | Common.MenuLayout | false |
This RPC has no additional parameter requirements
Copied to clipboard!
{ "id" : 112, "jsonrpc" : "2.0", "method" : "UI.AddSubMenu", "params" : { "menuID" : 345, "menuParams" : { "position" : 2, "menuName" : "Settings", "secondaryText" : "General", "tertiaryText" : "Help" }, "menuIcon" : { "value" : "tmp/SDL/app/Gis_meteo/1245_28.jpeg", "imageType" : "DYNAMIC" }, "secondaryImage" : { "value" : "tmp/SDL/app/Gis_meteo/5678.jpeg", "imageType" : "DYNAMIC" }, "appID" : 65464 } }
Copied to clipboard!
{ "id" : 112, "jsonrpc" : "2.0", "result" : { "code" : 0, "method" : "UI.AddSubMenu" } }
Copied to clipboard!
{ "id" : 112, "jsonrpc" : "2.0", "error" : { "code" : 14, "message" : "Duplicate name: there was a conflict with an already registered name of SubMenu", "data" : { "method" : "UI.AddSubMenu" } } }