summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLConfiguration.h
blob: ad3a8cb957fe9911e98e32fd1ed352eed7498a69 (plain)
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
//
//  SDLConfiguration.h
//  SmartDeviceLink-iOS
//
//  Created by Joel Fischer on 10/13/15.
//  Copyright © 2015 smartdevicelink. All rights reserved.
//

#import <Foundation/Foundation.h>

@class SDLLifecycleConfiguration;
@class SDLLockScreenConfiguration;

NS_ASSUME_NONNULL_BEGIN

@interface SDLConfiguration : NSObject <NSCopying>

/**
 *  The lifecycle configuration.
 */
@property (copy, nonatomic, readonly) SDLLifecycleConfiguration *lifecycleConfig;

/**
 *  The lock screen configuration.
 */
@property (copy, nonatomic, readonly) SDLLockScreenConfiguration *lockScreenConfig;

/**
 *  Create a new configuration to be passed into SDLManager.
 *
 *  @param lifecycleConfig  The lifecycle configuration to be used.
 *  @param lockScreenConfig The lockscreen configuration to be used. If nil, this will be `enabledConfiguration`.
 *
 *  @return The configuration
 */
- (instancetype)initWithLifecycle:(SDLLifecycleConfiguration *)lifecycleConfig lockScreen:(SDLLockScreenConfiguration *)lockScreenConfig;

/**
 *  Create a new configuration to be passed into SDLManager.
 *
 *  @param lifecycleConfig  The lifecycle configuration to be used.
 *  @param lockScreenConfig The lockscreen configuration to be used. If nil, this will be `enabledConfiguration`.
 *
 *  @return The configuration
 */
+ (instancetype)configurationWithLifecycle:(SDLLifecycleConfiguration *)lifecycleConfig lockScreen:(SDLLockScreenConfiguration *)lockScreenConfig;

@end

NS_ASSUME_NONNULL_END