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
MenuSelectionListener

MenuSelectionListener Class Reference

Constructors

Instance Methods

Constructors

new MenuSelectionListener()

Initializes an instance of MenuSelectionListener.

Instance Methods

menuSelectionListener.onTriggered(trigger)

Safely attempts to invoke the onTriggered event.

Kind: Instance method of MenuSelectionListener

ParamTypeDescription
trigger TriggerSource Indicates the source from where the item was triggered

menuSelectionListener.setOnTriggered(listener) ⇒ MenuSelectionListener

Set the onTriggered function.

Kind: Instance method of MenuSelectionListener
Returns: MenuSelectionListener - A reference to this instance to allow method chaining.

ParamTypeDescription
listener function A function to be invoked when the event occurs.
View on GitHub.com
Previous Section Next Section