Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
GetCapabilities

GetCapabilities

Type
Function
Sender
SDL
Purpose
Get the capabilities of buttons in the vehicle.

Request

Parameters

This RPC has no additional parameter requirements

Response

Parameters

Name Type Mandatory Additional
capabilities Common.ButtonCapabilities true array: true
minsize: 1
maxsize: 100
presetBankCapabilities Common.PresetBankCapabilities false

Sequence Diagrams

JSON Message Examples

Example Request

{
  "id" : 20,
  "jsonrpc" : "2.0",
  "method" : "Buttons.GetCapabilities"
}

Example Response

{
  "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"
  }
}

Example Error

{
  "id" : 20,
  "jsonrpc" : "2.0",
  "error" :
  {
    "code" : 9,
    "message" : "The requested data is not available",
    "data" :
    {
      "method" : "Buttons.GetCapabilities"
    }
  }
}
View on GitHub.com
Previous Section Next Section