| Constructor and Description |
|---|
ChoiceCell(String text)
Initialize the cell with text and nothing else.
|
ChoiceCell(String text,
List<String> voiceCommands,
SdlArtwork artwork)
Initialize the cell with text, optional artwork, and optional voice commands
|
ChoiceCell(String text,
String secondaryText,
String tertiaryText,
List<String> voiceCommands,
SdlArtwork artwork,
SdlArtwork secondaryArtwork)
Initialize the cell with all optional items
|
| Modifier and Type | Method and Description |
|---|---|
ChoiceCell |
clone()
Creates a deep copy of the object
|
boolean |
equals(Object o)
Uses our custom hashCode for ChoiceCell objects
|
SdlArtwork |
getArtwork()
Maps to Choice.image.
|
SdlArtwork |
getSecondaryArtwork()
Maps to Choice.secondaryImage.
|
String |
getSecondaryText()
Maps to Choice.secondaryText.
|
String |
getTertiaryText()
Maps to Choice.tertiaryText.
|
String |
getText()
Maps to Choice.menuName.
|
List<String> |
getVoiceCommands()
Maps to Choice.vrCommands.
|
int |
hashCode() |
String |
toString() |
public ChoiceCell(@NonNull
String text)
text - - The primary text of the cell.public ChoiceCell(@NonNull
String text,
List<String> voiceCommands,
SdlArtwork artwork)
text - - The primary text of the cellvoiceCommands - - Strings that can be spoken by the user to activate this cell in a voice or both interaction modeartwork - - The primary artwork of the cellpublic ChoiceCell(@NonNull
String text,
String secondaryText,
String tertiaryText,
List<String> voiceCommands,
SdlArtwork artwork,
SdlArtwork secondaryArtwork)
text - - The primary textsecondaryText - - The secondary texttertiaryText - - The tertiary textvoiceCommands - - Strings that can be spoken by the user to activate this cell in a voice or both interaction modeartwork - - The primary artwork of the cellsecondaryArtwork - - The secondary artwork of the cellpublic String getText()
public String getSecondaryText()
public String getTertiaryText()
public List<String> getVoiceCommands()
public SdlArtwork getArtwork()
public SdlArtwork getSecondaryArtwork()
public boolean equals(Object o)
@NonNull public String toString()
public ChoiceCell clone()