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
iOS Documentation
SDLDriverDistractionCapability

SDLDriverDistractionCapability Class Reference

Section Contents

Overview

@since SDL 7.0.0

-initWithMenuLength:subMenuDepth:

Objective-C

- (nonnull instancetype)
    initWithMenuLength:(nullable NSNumber<SDLInt> *)menuLength
          subMenuDepth:(nullable NSNumber<SDLUInt> *)subMenuDepth;

Swift

init(menuLength: (NSNumber & SDLInt)?, subMenuDepth: (NSNumber & SDLUInt)?)

Parameters

menuLength

- menuLength

subMenuDepth

- subMenuDepth

Return Value

A SDLDriverDistractionCapability object

menuLength

The number of items allowed in a Choice Set or Command menu while the driver is distracted {“default_value”: null, “max_value”: null, “min_value”: null}

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLInt> *menuLength;

Swift

var menuLength: (NSNumber & SDLInt)? { get set }

subMenuDepth

The depth of submenus allowed when the driver is distracted. e.g. 3 == top level menu -> submenu -> submenu; 1 == top level menu only {“default_value”: null, “max_value”: null, “min_value”: 1}

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLUInt> *subMenuDepth;

Swift

var subMenuDepth: (NSNumber & SDLUInt)? { get set }
View on GitHub.com
Previous Section Next Section