If the application sends AddCommand with the vrCommands parameter then SDL must maintain a list of the added vrCommands.
For each AddCommand, only the first item in the vrCommands array shall be added to the list.
Whenever the internal list of added vrCommands is updated SDL must:
construct the vrHelp and helpPrompt parameters using the data from the list SDL created internally
send these parameters to the HMI via the SetGlobalProperties RPC
| Name | Type | Mandatory | Additional |
|---|---|---|---|
| cmdID | Integer | true | minvalue: 0 maxvalue: 2000000000 |
| vrCommands | String | true | array: true minsize: 1 maxsize: 100 maxlength: 99 |
| type | Common.VRCommandType | true | |
| grammarID | Integer | true | minvalue: 0 maxvalue: 2000000000 |
| appID | Integer | false |
This RPC has no additional parameter requirements
{ "id" : 119, "jsonrpc" : "2.0", "method" : "VR.AddCommand", "params" : { "cmdID" : 4365, "vrCommands" : [ "Leave", "Exit", "Quit" ], "grammarID" : 123, "type" : "Command", "appID" : 64467 } }
{ "id" : 119, "jsonrpc" : "2.0", "result" : { "code" : 0, "method" : "VR.AddCommand" } }
{ "id" : 119, "jsonrpc" : "2.0", "error" : { "code" : 13, "message" : "Provided appID is not valid", "data" : { "method" : "VR.AddCommand" } } }