SDL requests to set-up the data for VR help layout, the name and icon for in-application menu and the properties of the touchscreen keyboard.
The request may arrive for the application whether being active or in background on HMI (depends on Policy Table permissions applicable to mobile application request, by default allowed to operate in all HMI levels except of NONE).
The vrHelp
parameter of the SetGlobalProperties
RPC is used by the system to display the help items on the screen and the helpPrompt
parameter is used by the system for playing out the associated TTS help prompt.
SDL sends SetGlobalProperties request with specific <vrHelp>
and <vrHelpTitle>
values to HMI in next cases:
SetGlobalProperties
RPC with the vrHelp
and helpPrompt
parameters, then SDL Core shall continue with the existing behavior of forwarding such requests to HMI and SDL Core shall delete its internal list and stop sending SetGlobalProperties
RPC to HMI after each AddCommand/DeleteCommand request received from mobile.SetGlobalProperties
RPC with either of vrHelp
or helpPrompt
parameters, then SDL Core shall continue with the existing behavior of forwarding such requests to HMI and SDL Core shall not delete its internal list and shall continue to update the parameter which was not provided by the application. AddCommand
with CommandType = Command
, SDL must send update values of vrHelp
via SetGlobalProperties
to HMI. (Note: AddCommand requests related to choice set must NOT trigger the update of "vrHelp")autoCompleteText
parameter when forwarding to the HMIautoCompleteText
is present and autoCompleteList
is omitted, SDL will forward autoCompleteList
with a single value, taken from autoCompleteText
.By default vrHelpTitle
value is set to application name.
Notes for HMI expected behavior:
autoCompleteList
per app. autoCompleteList
for a particular app, the system shall delete the previous list and replace it with the new list for that app. autoCompleteList
strings for that app. autoCompleteList
which match the entry.autoCompleteList
strings displayed shall only be limited by the character length constraints of the hmi.autoCompleteList
strings without having to enter the entire string. autoCompleteList
strings, the system shall submit that entry and not require further user input for submission.Name | Type | Mandatory | Additional |
---|---|---|---|
vrHelpTitle | String | false | maxlength: 500 |
vrHelp | Common.VrHelpItem | false | array: true minsize: 1 maxsize: 100 |
menuTitle | String | false | maxlength: 500 |
menuIcon | Common.Image | false | |
keyboardProperties | Common.KeyboardProperties | false | |
appID | Integer | true | |
menuLayout | Common.MenuLayout | false |
Result | Description | Message type WebSocket | Message type D-Bus | Message Params |
---|---|---|---|---|
Success | SUCCESS: HMI has set the requested properties. | JSON response | Method return | code: 0 |
Failure | INVALID_ID:appID is not valid (e.g.does not exist) | JSON response | Method return | code: 13 |
Failure | INVALID_DATA: The data sent is invalid (invalid JSON syntax or parameters out of bounds or of wrong type) | JSON response | Method return | code: 11 |
Failure | GENERIC_ERROR: The unknown issue occurred or other codes are not applicable. | JSON response | Method return | code: 22 |
In case HMI does not respond SDL's request during SDL-default timeout (10 sec), SDL will return GENERIC_ERROR result code to the corresponding mobile app's request. Please see Result Enumeration for all SDL-supported codes.
This RPC has no additional parameter requirements
{ "id" : 116, "jsonrpc" : "2.0", "method" : "UI.SetGlobalProperties", "params" : { "vrHelpTitle" : "Choose the action", "vrHelp" : [ { "text" : "Pause", "image" : { "value" : "tmp/SDL/app/Pandora/icon_1067.jpg", "imageType" : "DYNAMIC" }, "position" : 1 }, { "text" : "Resume", "image" : { "value" : "tmp/SDL/app/Pandora/icon_1083.jpeg", "imageType" : "DYNAMIC" }, "position" : 2 }, { "text" : "Skip", "image" : { "value" : "tmp/SDL/app/Pandora/icon_1013.jpeg", "imageType" : "DYNAMIC" }, "position" : 3 }, { "text" : "Bookmark", "image" : { "value" : "tmp/SDL/app/Pandora/icon_1046.jpeg", "imageType" : "DYNAMIC" }, "position" : 4 } ], "appID" : 53880 } }
{ "id" : 116, "jsonrpc" : "2.0", "result" : { "code" : 0, "method" : "UI.SetGlobalProperties" } }
{ "id" : 116, "jsonrpc" : "2.0", "error" : { "code" : 11, "message" : "Invalid data", "data" : { "method" : "UI.SetGlobalProperties" } } }