In order to work with widget windows, the app needs to be able to create them. One app can create one or multiple widgets.
This request is sent by SDL to HMI to create one or multiple widget windows.
duplicateUpdatesFromWindowID
, it is prohibited for 2 widgets to have this parameter set to duplicate each other's content. (E.g. having widget1 that duplicates widget2 AND widget2 which duplicates widget1 is not allowed)Name | Type | Mandatory | Additional |
---|---|---|---|
windowID | Integer | true | |
windowName | String | true | maxlength: 100 |
type | Common.WindowType | true | |
associatedServiceType | String | false | |
duplicateUpdatesFromWindowID | Integer | false | |
appID | Integer | true |
This RPC has no additional parameter requirements
{ "id" : 70, "jsonrpc" : "2.0", "method" : "UI.CreateWindow", "params" : { "windowName":"Widget App1", "windowID":2, "associatedServiceType":"MEDIA", "type":"WIDGET", "duplicateUpdatesFromWindowID":0, "appID": 65368 } }
{ "id" : 70, "jsonrpc" : "2.0", "result" : { "code" : 0, "method" : "UI.CreateWindow" } }
{ "id" : 70, "jsonrpc" : "2.0", "error" : { "code" : 8, "message" : "The data may not be changed because it is currently in use", "data" : { "method" : "UI.CreateWindow" } } }