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

UpdateTurnList

Type
Function
Sender
SDL
Purpose
Update embedded navigation's list of directions for the current route.

Request

Parameters

Name Type Mandatory Additional
turnList Common.Turn false array: true
minsize: 1
maxsize: 100
softButtons Common.SoftButton false array: true
minsize: 0
maxsize: 1
appID Integer true

Response

Parameters

This RPC has no additional parameter requirements

Sequence Diagrams

Example Request

{
  "id" : 176,
  "jsonrpc" : "2.0",
  "method" : "Navigation.UpdateTurnList",
  "params" :
  {
    "turnList" :
    [
      {
        "navigationText" :  
        [
          "fieldName" :  navigationText,
          "fieldText" : "Turn Right"
        ],
        "turnIcon" :
        [
           "value" : "tmp/SDL/app/Navi/icon_turn_right.jpeg",
           "imageType" :  DYNAMIC
        ]
      },

      {
        "navigationText" :  
        [
          "fieldName" :  navigationText,
          "fieldText" : "Turn Left"
        ],
        "turnIcon" :
        [
           "value" : "tmp/SDL/app/Navi/icon_turn_left.jpeg",
           "imageType" :  DYNAMIC
        ]
      },

      {
        "navigationText" :  
        [
          "fieldName" :  navigationText,
          "fieldText" : "Go Forward"
        ],
        "turnIcon" :
        [
           "value" : "tmp/SDL/app/Navi/icon_go_forward.jpeg",
           "imageType" :  DYNAMIC
        ]
      }
    ],

    "softButtons" :
    [
        "type" :  BOTH,
        "text" : "Return",
        "image" :
        [
           "value" : "tmp/SDL/app/Navi/icon_583.jpg",
           "imageType" : DYNAMIC
        ],
        "isHighlighted" : true,
        "softButtonID" : 118,
        "systemAction" :  DEFAULT_ACTION
    ]
  }
}

Example Response

{
  "id" : 176,
  "jsonrpc" : "2.0",
  "result" :
  {
    "code" : 0,
    "method" : "Navigation.UpdateTurnList"
  }
}

Example Error

{
  "id" : 176,
  "jsonrpc" : "2.0",
  "error" :
  {
    "code" : 4,
    "message" : " A command was rejected because a higher priority command is requested",
    "data" :
    {
      "method" : "Navigation.UpdateTurnList"
    }
  }
}
View on GitHub.com
Previous Section Next Section