java.lang.Object
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)
The strings the user can say to activate this voice command
public void setVoiceCommands(java.util.List<java.lang.String> voiceCommands)
The strings the user can say to activate this voice command
public java.util.List getVoiceCommands()
The listener that will be called when the command is activated
public void setVoiceCommandSelectionListener(VoiceCommandSelectionListener voiceCommandSelectionListener)
The listener that will be called when the command is activated
public com.smartdevicelink.managers.screen.menu.VoiceCommandSelectionListener getVoiceCommandSelectionListener()
Used to compile hashcode for VoiceCommand for use to compare in equals method
public int hashCode()
Uses our custom hashCode for VoiceCommand objects
public boolean equals(Object o)
Creates a deep copy of the object
public com.smartdevicelink.managers.screen.menu.VoiceCommand clone()
From Class | Methods |
---|---|
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |