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
JavaScript Suite Documentation
OnCommand

OnCommand Class Reference

Constructors

Instance Methods

Constructors

new OnCommand(parameters)

Initializes an instance of OnCommand.

Instance Methods

onCommand.getCmdID() ⇒ Number

Get the CmdID

Kind: Instance method of OnCommand
Returns: Number - the KEY_CMD_ID value

onCommand.getTriggerSource() ⇒ TriggerSource

Get the TriggerSource

Kind: Instance method of OnCommand
Returns: TriggerSource - the KEY_TRIGGER_SOURCE value

onCommand.setCmdID(id) ⇒ OnCommand

Set the CmdID

Kind: Instance method of OnCommand
Returns: OnCommand - The class instance for method chaining.

ParamTypeDescription
id Number Command ID, which is related to a specific menu entry - The desired CmdID. {'num_min_value': 0, 'num_max_value': 2000000000}

onCommand.setTriggerSource(source) ⇒ OnCommand

Set the TriggerSource

Kind: Instance method of OnCommand
Returns: OnCommand - The class instance for method chaining.

ParamTypeDescription
source TriggerSource See TriggerSource - The desired TriggerSource.
View on GitHub.com
Previous Section Next Section