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

ChoiceSetSelectionListener Class Reference

Constructors

Instance Methods

Constructors

new ChoiceSetSelectionListener()

Initializes an instance of ChoiceSetSelectionListener.

Instance Methods

choiceSetSelectionListener.onChoiceSelected(choiceCell, triggerSource, rowIndex)

Safely attempts to invoke the onChoiceSelected event.

Kind: Instance method of ChoiceSetSelectionListener

ParamTypeDescription
choiceCell ChoiceCell Represents a choice
triggerSource TriggerSource Indicates the source from where the command was triggered
rowIndex Number The index of the choice selected

choiceSetSelectionListener.onError(error)

Safely attempts to invoke the onError event.

Kind: Instance method of ChoiceSetSelectionListener

ParamTypeDescription
error String The error string.

choiceSetSelectionListener.setOnChoiceSelected(listener) ⇒ ChoiceSetSelectionListener

Set the onChoiceSelected function.

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

ParamTypeDescription
listener function A function to be invoked when the event occurs.

choiceSetSelectionListener.setOnError(listener) ⇒ ChoiceSetSelectionListener

Set the onError function.

Kind: Instance method of ChoiceSetSelectionListener
Returns: ChoiceSetSelectionListener - 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