SDL requests HMI to subscribe an application to a buttonName
.
The request may come for the application being whatever active or in background on HMI (depends on SDL Policy Manager permissions).
During Resumption SDL should restore all button subscriptions for application and send required SubscribeButton
requests to HMI.
SDL transfers Buttons.SubscribeButton(CUSTOM_BUTTON)
request from an application to HMI only if CUSTOM_BUTTON
is supported by HMI (Buttons[capabilities]
section of hmi_capabilities.json
).
Name | Type | Mandatory | Additional |
---|---|---|---|
appID | Integer | true | |
buttonName | Common.ButtonName | true |
buttonName
.This RPC has no additional parameter requirements
{ "id": 32, "jsonrpc": "2.0", "method": "Buttons.SubscribeButton", "params": { "appID": 680015438, "buttonName": "VOLUME_UP" } }
{ "id": 32, "jsonrpc": "2.0", "result": { "code": 0, "method": "Buttons.SubscribeButton" } }
{ "error": { "code": 22, "data": { "method": "Buttons.SubscribeButton" }, "message": "An unknown issue occurred" }, "id": 32, "jsonrpc": "2.0" }