Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

SDLOnLockScreenStatus Class Reference

Section Contents

Overview

To help prevent driver distraction, any SmartDeviceLink application is required to implement a lockscreen that must be enforced while the application is active on the system while the vehicle is in motion.

This lockscreen must perform the following:

Limit all application control usability from the mobile device with a full-screen static image overlay or separate view.

For simplicity, the OnLockScreenStatus RPC will be provided via the onOnLockScreenNotification call back. The call back will include the LockScreenStatus enum which indicates if the lockscreen is required, optional or not required.

The call back also includes details regarding the current HMI_Status level, driver distraction status and user selection status of the application.

driverDistractionStatus

Get the current driver distraction status(i.e. whether driver distraction rules are in effect, or not)

Objective-C

@property (readwrite, strong, nonatomic)
    NSNumber<SDLBool> *_Nonnull driverDistractionStatus;

Swift

var driverDistractionStatus: NSNumber & SDLBool { get set }

userSelected

Get user selection status for the application (has the app been selected via hmi or voice command)

Objective-C

@property (readwrite, strong, nonatomic)
    NSNumber<SDLBool> *_Nonnull userSelected;

Swift

var userSelected: NSNumber & SDLBool { get set }

lockScreenStatus

Indicates if the lockscreen should be required, optional or off

Objective-C

@property (readwrite, strong, nonatomic)
    SDLLockScreenStatus _Nonnull lockScreenStatus;

Swift

var lockScreenStatus: SDLLockScreenStatus { get set }

hmiLevel

Get HMILevel in effect for the application

Objective-C

@property (readwrite, strong, nonatomic) SDLHMILevel _Nonnull hmiLevel;

Swift

var hmiLevel: SDLHMILevel { get set }
View on GitHub.com
Previous Section Next Section