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
OnCommand

OnCommand

Type
Notification
Sender
HMI
Purpose
Inform SDL that a command has been chosen by the User from the UI.

A notification to inform SDL about a command being selected which had previously been added via UI.AddCommand

Must

The HMI must send the UI.OnCommand notification to SDL when the user selects a command from the application's menu or sub menu.

Notification

Parameters

Name Type Mandatory Additional
cmdID Integer true minvalue: 0
maxvalue: 2000000000
appID Integer true

Sequence Diagrams

JSON Message Examples

Example Notification

{
  "jsonrpc" : "2.0",
  "method" : "UI.OnCommand",
  "params" :
  {
    "cmdID" : 2318,
     "appID" : 65409
  }
}
View on GitHub.com
Previous Section Next Section