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
OnUpdateSubMenu

OnUpdateSubMenu Class Reference

Constructors

Instance Methods

Constructors

new OnUpdateSubMenu(parameters)

Initializes an instance of OnUpdateSubMenu.

Instance Methods

onUpdateSubMenu.getMenuID() ⇒ Number

Get the MenuID

Kind: Instance method of OnUpdateSubMenu
Returns: Number - the KEY_MENU_ID value

onUpdateSubMenu.getUpdateSubCells() ⇒ Boolean

Get the UpdateSubCells

Kind: Instance method of OnUpdateSubMenu
Returns: Boolean - the KEY_UPDATE_SUB_CELLS value

onUpdateSubMenu.setMenuID(id) ⇒ OnUpdateSubMenu

Set the MenuID

Kind: Instance method of OnUpdateSubMenu
Returns: OnUpdateSubMenu - The class instance for method chaining.

ParamTypeDescription
id Number This menuID must match a menuID in the current menu structure - The desired MenuID. {'num_min_value': 0, 'num_max_value': 2000000000}

onUpdateSubMenu.setUpdateSubCells(cells) ⇒ OnUpdateSubMenu

Set the UpdateSubCells

Kind: Instance method of OnUpdateSubMenu
Returns: OnUpdateSubMenu - The class instance for method chaining.

ParamTypeDescription
cells Boolean If not set, assume false. If true, the app should send AddCommands with parentIDs matching the menuID. These AddCommands will then be attached to the submenu and displayed if the submenu is selected. - The desired UpdateSubCells.
View on GitHub.com
Previous Section Next Section