1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
//
// SDLLockScreenConfiguration.h
// SmartDeviceLink-iOS
//
// Created by Joel Fischer on 10/13/15.
// Copyright © 2015 smartdevicelink. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface SDLLockScreenConfiguration : NSObject <NSCopying>
/**
* Whether or not the lock screen should be shown in the "lock screen optional" state. Defaults to 'NO'.
*/
@property (assign, nonatomic) BOOL showInOptionalState;
/**
* If YES, the lock screen should be managed by SDL and automatically engage when necessary. If NO, then the lock screen will never be engaged.
*/
@property (assign, nonatomic, readonly) BOOL enableAutomaticLockScreen;
/**
* The background color of the lock screen. This could be a branding color, or leave at the default for a dark blue-gray.
*/
@property (copy, nonatomic, readonly) UIColor *backgroundColor;
/**
* Your app icon as it will appear on the lock screen.
*/
@property (copy, nonatomic, readonly, nullable) UIImage *appIcon;
/**
* A custom view controller that the lock screen will manage the presentation of.
*/
@property (strong, nonatomic, readonly, nullable) UIViewController *customViewController;
- (instancetype)init NS_UNAVAILABLE;
/**
* Use this configuration if you wish to manage a lock screen yourself. This may be useful if the automatic presentation feature of SDLLockScreenManager is failing for some reason.
*
* @return The configuration
*/
+ (instancetype)disabledConfiguration;
/**
* Use this configuration for the basic default lock screen. A custom app icon will not be used.
*
* @return The configuration
*/
+ (instancetype)enabledConfiguration;
/**
* Use this configuration to provide a custom lock screen icon and a custom background color, or nil if you wish to use the default background color. This will use the default lock screen layout.
*
* @param lockScreenAppIcon The app icon to be shown on the lock screen
* @param lockScreenBackgroundColor The color of the lock screen background
*
* @return The configuration
*/
+ (instancetype)enabledConfigurationWithAppIcon:(UIImage *)lockScreenAppIcon backgroundColor:(nullable UIColor *)lockScreenBackgroundColor;
/**
* Use this configuration if you wish to provide your own view controller for the lock screen. This view controller's presentation and dismissal will still be managed by the lock screen manager. Note that you may subclass SDLLockScreenViewController and pass it here to continue to have the vehicle icon set to your view controller by the manager.
*
* @param viewController The view controller to be managed
*
* @return The configuration
*/
+ (instancetype)enabledConfigurationWithViewController:(UIViewController *)viewController;
@end
NS_ASSUME_NONNULL_END
|