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

Class VoiceCommand

Hierarchy

java.lang.Object

Package
com.smartdevicelink.managers.screen.menu

Constructors

VoiceCommand( java.util.List<java.lang.String> voiceCommands, VoiceCommandSelectionListener voiceCommandSelectionListener )

Constructor that sets all parameters for this class NOTE: While it is possible to pass in null for the listener, It is the easiest way to know when it was triggered.

public VoiceCommand(java.util.List<java.lang.String> voiceCommands,VoiceCommandSelectionListener voiceCommandSelectionListener)

Parameters

voiceCommands
The strings the user can say to activate this voice command
voiceCommandSelectionListener
The listener that will be called when the command is activated

Methods

setVoiceCommands( java.util.List<java.lang.String> voiceCommands )

The strings the user can say to activate this voice command

public void setVoiceCommands(java.util.List<java.lang.String> voiceCommands)

Parameters

voiceCommands
- the list of commands to send to the head unit

getVoiceCommands()

The strings the user can say to activate this voice command

public java.util.List getVoiceCommands()

setVoiceCommandSelectionListener( VoiceCommandSelectionListener voiceCommandSelectionListener )

The listener that will be called when the command is activated

public void setVoiceCommandSelectionListener(VoiceCommandSelectionListener voiceCommandSelectionListener)

Parameters

voiceCommandSelectionListener
- the listener for this object

getVoiceCommandSelectionListener()

The listener that will be called when the command is activated

public com.smartdevicelink.managers.screen.menu.VoiceCommandSelectionListener getVoiceCommandSelectionListener()

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section