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
OnButtonEvent

OnButtonEvent

Type
Notification
Sender
HMI
Purpose
Inform SDL about the occurrence of a button event.

Notification

Parameters

Name Type Mandatory Additional
name Common.ButtonName true
mode Common.ButtonEventMode true
customButtonID Integer false minvalue: 0
maxvalue: 65536
appID Integer false

Sequence Diagrams

JSON Message Examples

Example Notification

{
  "jsonrpc" : "2.0",
  "method" : "Buttons.OnButtonEvent",
  "params" :
  {
    "name" : "OK",
    "mode" : "BUTTONDOWN"
  }
}
View on GitHub.com
Previous Section Next Section