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
SDLOnDriverDistraction

SDLOnDriverDistraction Class Reference

Section Contents

Overview

Notifies the application of the current driver distraction state (whether driver distraction rules are in effect, or not).

HMI Status Requirements:

HMILevel: Can be sent with FULL, LIMITED or BACKGROUND

AudioStreamingState: Any

SystemContext: Any

@since SDL 1.0

state

The driver distraction state (i.e. whether driver distraction rules are in effect, or not)

Objective-C

@property (nonatomic, strong) SDLDriverDistractionState _Nonnull state;

Swift

var state: SDLDriverDistractionState { get set }

lockScreenDismissalEnabled

If enabled, the lock screen will be able to be dismissed while connected to SDL, allowing users the ability to interact with the app.

Optional, Boolean

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLBool> *lockScreenDismissalEnabled;

Swift

var lockScreenDismissalEnabled: (NSNumber & SDLBool)? { get set }

lockScreenDismissalWarning

Warning message to be displayed on the lock screen when dismissal is enabled. This warning should be used to ensure that the user is not the driver of the vehicle, ex. Swipe up to dismiss, acknowledging that you are not the driver.. This parameter must be present if “lockScreenDismissalEnabled” is set to true.

Optional, String

Objective-C

@property (nonatomic, strong, nullable) NSString *lockScreenDismissalWarning;

Swift

var lockScreenDismissalWarning: String? { get set }
View on GitHub.com
Previous Section Next Section