Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
HMI Documentation
GetAppProperties

GetAppProperties

Type
Function
Sender
HMI
Purpose
Get the current properties of an application

Request

Parameters

Name Type Mandatory Additional
policyAppID String false maxlength: 100

Response

In case policyAppID is omitted in the request, SDL provides all app properties in the response.

Parameters

Name Type Mandatory Additional
properties Common.AppProperties false array: true
minsize: 1

Sequence Diagrams

JSON Message Examples

Example Request

{
  "id": 47,
  "jsonrpc": "2.0",
  "method": "BasicCommunication.GetAppProperties",
  "params": {
    "policyAppID" : 123456
  }
}

Example Response

{
  "id": 47,
  "jsonrpc": "2.0",
  "result": {
    "properties": [
        {
          "nicknames": [
            "Hello Sdl"
          ],
          "policyAppID": "123456",
          "enabled": true,
          "transportType": "WS",
          "hybridAppPreference": "BOTH"
        }
    ],
    "code": 0,
    "method": "BasicCommunication.GetAppProperties"
  }
}

Example Error

{
  "id": 47,
  "jsonrpc": "2.0",
  "error": {
    "code": 11,
    "message": "Invalid data",
    "data": {
      "method": "BasicCommunication.GetAppProperties"
    }
  }
}
View on GitHub.com
Previous Section Next Section