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()