Number
Number
DriverDistractionCapability
DriverDistractionCapability
Initializes an instance of DriverDistractionCapability.
Number
Get the MenuLength
Kind: Instance method of DriverDistractionCapability
Returns: Number
- the KEY_MENU_LENGTH value
Number
Get the SubMenuDepth
Kind: Instance method of DriverDistractionCapability
Returns: Number
- the KEY_SUB_MENU_DEPTH value
DriverDistractionCapability
Set the MenuLength
Kind: Instance method of DriverDistractionCapability
Returns: DriverDistractionCapability
- The class instance for method chaining.
Param | Type | Description |
---|---|---|
length | Number |
The number of items allowed in a Choice Set or Command menu while the driver is distracted - The desired MenuLength. |
DriverDistractionCapability
Set the SubMenuDepth
Kind: Instance method of DriverDistractionCapability
Returns: DriverDistractionCapability
- The class instance for method chaining.
Param | Type | Description |
---|---|---|
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} |