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
SDLLockScreenViewController

SDLLockScreenViewController Class Reference

Section Contents

Overview

The view controller for the lockscreen.

appIcon

The app’s icon. This will be set by the lock screen configuration.

Objective-C

@property (nonatomic, copy, nullable) UIImage *appIcon;

Swift

@NSCopying var appIcon: UIImage? { get set }

vehicleIcon

The vehicle’s designated icon. This will be set by the lock screen manager when it is notified that a lock screen icon has been downloaded.

Objective-C

@property (nonatomic, copy, nullable) UIImage *vehicleIcon;

Swift

@NSCopying var vehicleIcon: UIImage? { get set }

backgroundColor

The designated background color set in the lock screen configuration, or the default SDL gray-blue.

Objective-C

@property (nonatomic, copy, nullable) UIColor *backgroundColor;

Swift

@NSCopying var backgroundColor: UIColor? { get set }

lockedLabelText

The locked label string. This will be set by the lock screen manager to inform the user about the dismissible state.

Objective-C

@property (nonatomic, copy, nullable) NSString *lockedLabelText;

Swift

var lockedLabelText: String? { get set }

-addDismissGestureWithCallback:

Adds a swipe gesture to the lock screen view controller.

Objective-C

- (void)addDismissGestureWithCallback:
    (nonnull SwipeGestureCallbackBlock)swipeGestureCallback;

Swift

func addDismissGesture(callback swipeGestureCallback: @escaping SwipeGestureCallbackBlock)

-removeDismissGesture

Remove swipe gesture to the lock screen view controller.

Objective-C

- (void)removeDismissGesture;

Swift

func removeDismissGesture()
View on GitHub.com
Previous Section Next Section