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
DriverDistractionCapability

DriverDistractionCapability Class Reference

Constructors

Instance Methods

Constructors

new DriverDistractionCapability(parameters)

Initializes an instance of DriverDistractionCapability.

Instance Methods

driverDistractionCapability.getMenuLength() ⇒ Number

Get the MenuLength

Kind: Instance method of DriverDistractionCapability
Returns: Number - the KEY_MENU_LENGTH value

driverDistractionCapability.getSubMenuDepth() ⇒ Number

Get the SubMenuDepth

Kind: Instance method of DriverDistractionCapability
Returns: Number - the KEY_SUB_MENU_DEPTH value

driverDistractionCapability.setMenuLength(length) ⇒ DriverDistractionCapability

Set the MenuLength

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

ParamTypeDescription
length Number The number of items allowed in a Choice Set or Command menu while the driver is distracted - The desired MenuLength.

driverDistractionCapability.setSubMenuDepth(depth) ⇒ DriverDistractionCapability

Set the SubMenuDepth

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

ParamTypeDescription
depth Number The depth of submenus allowed when the driver is distracted. e.g. 3 == top level menu -> submenu -> submenu; 1 == top level menu only - The desired SubMenuDepth. {'num_min_value': 1}
View on GitHub.com
Previous Section Next Section