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
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
JavaScript Suite Documentation
MenuCell

MenuCell Class Reference

Constructors

Instance Methods

Constructors

new MenuCell(title)

Creates a new instance of MenuCell

Instance Methods

menuCell.clone() ⇒ MenuCell

Creates a deep copy of the object

Kind: Instance method of MenuCell
Returns: MenuCell - A deep copy of the object

menuCell.equals(other) ⇒ Boolean

Checks whether two MenuCells can be considered equivalent, but does not compare the unique title

Kind: Instance method of MenuCell
Returns: Boolean - Whether the objects are the same or not

ParamTypeDescription
other MenuCell The object to compare

menuCell.equalsWithUniqueTitle(other) ⇒ Boolean

Checks whether two MenuCells can be considered equivalent, and also compares the unique title

Kind: Instance method of MenuCell
Returns: Boolean - Whether the objects are the same or not

ParamTypeDescription
other MenuCell The object to compare

menuCell.getIcon() ⇒ SdlArtwork

Gets the icon of the menu cell

Kind: Instance method of MenuCell
Returns: SdlArtwork - The cell's icon to be displayed

menuCell.getMenuSelectionListener() ⇒ MenuSelectionListener

Gets the menu listener of the menu cell

Kind: Instance method of MenuCell
Returns: MenuSelectionListener - The listener for when a menu item is selected

menuCell.getSecondaryArtwork() ⇒ SdlArtwork

Gets the secondary artwork of the menu cell

Kind: Instance method of MenuCell
Returns: SdlArtwork - The secondary artwork

menuCell.getSecondaryText() ⇒ String

Gets the secondary text of the menu cell

Kind: Instance method of MenuCell
Returns: String - The secondary text

menuCell.getSubCells() ⇒ Array.<MenuCell>

Gets the sub cells of the menu cell

Kind: Instance method of MenuCell
Returns: Array.<MenuCell> - The list of MenuCells that can be set as subCells

menuCell.getSubMenuLayout() ⇒ MenuLayout

Gets the sub menu layout of the menu cell

Kind: Instance method of MenuCell
Returns: MenuLayout - The submenu's layout that the subCells will be shown in. If `null`, the default submenu layout set via the screen manager's `MenuConfiguration` will be used.

menuCell.getTertiaryText() ⇒ String

Gets the tertiary text of the menu cell

Kind: Instance method of MenuCell
Returns: String - The tertiary text

menuCell.getTitle() ⇒ String

Gets the title of the menu cell

Kind: Instance method of MenuCell
Returns: String - The title of the cell object

menuCell.getVoiceCommands() ⇒ Array.<String>

Gets the voice commands of the menu cell

Kind: Instance method of MenuCell
Returns: Array.<String> - A list of Strings that will be used for voice commands

menuCell.isSubMenuCell() ⇒ Boolean

Checks whether this cell can support subcells

Kind: Instance method of MenuCell
Returns: Boolean - Whether subcells are supported

menuCell.setIcon(icon) ⇒ MenuCell

Sets the icon of the menu cell

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

ParamTypeDescription
icon SdlArtwork The cell's icon to be displayed

menuCell.setMenuSelectionListener(menuSelectionListener) ⇒ MenuCell

Sets the menu listener of the menu cell

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

ParamTypeDescription
menuSelectionListener MenuSelectionListener The listener for when a menu item is selected

menuCell.setSecondaryArtwork(secondaryArtwork) ⇒ MenuCell

Sets the secondary artwork of the menu cell

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

ParamTypeDescription
secondaryArtwork SdlArtwork The secondary artwork

menuCell.setSecondaryText(secondaryText) ⇒ MenuCell

Sets the secondary text of the menu cell

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

ParamTypeDescription
secondaryText String The secondary text

menuCell.setSubCells(subCells) ⇒ MenuCell

Sets the sub cells of the menu cell

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

ParamTypeDescription
subCells Array.<MenuCell> The list of MenuCells that can be set as subCells

menuCell.setSubMenuLayout(subMenuLayout) ⇒ MenuCell

Sets the sub menu layout of the menu cell

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

ParamTypeDescription
subMenuLayout MenuLayout The submenu's layout that the subCells will be shown in. If `null`, the default submenu layout set via the screen manager's `MenuConfiguration` will be used.

menuCell.setTertiaryText(tertiaryText) ⇒ MenuCell

Sets the tertiary text of the menu cell

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

ParamTypeDescription
tertiaryText String The tertiary text

menuCell.setTitle(title) ⇒ MenuCell

Sets the title of the menu cell

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

ParamTypeDescription
title String The title of the cell object. Required

menuCell.setVoiceCommands(voiceCommands) ⇒ MenuCell

Sets the voice commands of the menu cell

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

ParamTypeDescription
voiceCommands Array.<String> A list of Strings that will be used for voice commands
View on GitHub.com
Previous Section Next Section