Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
VoiceCommand

VoiceCommand Class Reference

Constructors

Instance Methods

Constructors

new VoiceCommand(voiceCommands, voiceCommandSelectionListener)

Initializes an instance of VoiceCommand. NOTE: voiceCommands is poorly named. They are more like voice aliases, which map to a single voice command

Instance Methods

voiceCommand.getVoiceCommandSelectionListener() ⇒ [function, null]

The listener that will be called when the command is activated

Kind: Instance method of VoiceCommand
Returns: [function, null] - the listener for this object

voiceCommand.getVoiceCommands() ⇒ Array.<String>

The strings the user can say to activate this voice command

Kind: Instance method of VoiceCommand
Returns: Array.<String> - the List of voice commands

voiceCommand.setVoiceCommandSelectionListener(voiceCommandSelectionListener) ⇒ VoiceCommand

The listener that will be called when the command is activated

Kind: Instance method of VoiceCommand
Returns: VoiceCommand - A reference to this instance to support method chaining.

ParamTypeDescription
voiceCommandSelectionListener function the listener for this object

voiceCommand.setVoiceCommands(voiceCommands) ⇒ VoiceCommand

The strings the user can say to activate this voice command

Kind: Instance method of VoiceCommand
Returns: VoiceCommand - A reference to this instance to support method chaining.

ParamTypeDescription
voiceCommands Array.<String> the list of commands to send to the head unit
View on GitHub.com
Previous Section Next Section