SDL requests HMI to provide capabilities of supported buttons and saves received capabilities internally.
This RPC has no additional parameter requirements
Check hmi_capabilities, and respond to SDL providing the capabilities of supported buttons.
Name | Type | Mandatory | Additional |
---|---|---|---|
capabilities | Common.ButtonCapabilities | true | array: true minsize: 1 maxsize: 100 |
presetBankCapabilities | Common.PresetBankCapabilities | false |
{ "id" : 20, "jsonrpc" : "2.0", "method" : "Buttons.GetCapabilities" }
{ "id" : 20, "jsonrpc" : "2.0", "result" : { "capabilities" : [ { "name" : "OK", "shortPressAvailable" : true, "longPressAvailable" : true, "upDownAvailable" : true }, { "name" : "SEEKLEFT", "shortPressAvailable" : true, "longPressAvailable" : true, "upDownAvailable" : true }, { "name" : "SEEKRIGHT", "shortPressAvailable" : true, "longPressAvailable" : true, "upDownAvailable" : true }, { "name" : "TUNEUP", "shortPressAvailable" : true, "longPressAvailable" : true, "upDownAvailable" : true }, { "name" : "TUNEDOWN", "shortPressAvailable" : true, "longPressAvailable" : true, "upDownAvailable" : true } ], "presetBankCapabilities" : { "onScreenPresetsAvailable" : true }, "code" : 0, "method" : "Buttons.GetCapabilities" } }
{ "id" : 20, "jsonrpc" : "2.0", "error" : { "code" : 9, "message" : "The requested data is not available", "data" : { "method" : "Buttons.GetCapabilities" } } }