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 menuIDmenuParams| Name | Type | Mandatory | Additional |
|---|---|---|---|
| menuID | Integer | true | minvalue: 1 maxvalue: 2000000000 |
| menuParams | Common.MenuParams | true | |
| menuIcon | Common.Image | false | |
| appID | Integer | true | |
| menuLayout | Common.MenuLayout | false |
This RPC has no additional parameter requirements
{ "id" : 112, "jsonrpc" : "2.0", "method" : "UI.AddSubMenu", "params" : { "menuID" : 345, "menuParams" : { "position" : 2, "menuName" : "Settings" }, "appID" : 65464 } }
{ "id" : 112, "jsonrpc" : "2.0", "result" : { "code" : 0, "method" : "UI.AddSubMenu" } }
{ "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" } } }