-
Notifications
You must be signed in to change notification settings - Fork 110
/
SDLTemplateConfiguration.h
85 lines (62 loc) 路 3.02 KB
/
SDLTemplateConfiguration.h
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
79
80
81
82
83
84
85
//
// SDLTemplateConfiguration.h
// SmartDeviceLink
#import "SDLTemplateColorScheme.h"
#import "SDLPredefinedLayout.h"
NS_ASSUME_NONNULL_BEGIN
/**
Used to set an alternate template layout to a window.
@since SDL 6.0
*/
@interface SDLTemplateConfiguration : SDLRPCStruct
/**
Constructor with the required values.
@param predefinedLayout A template layout an app uses to display information. The broad details of the layout are defined, but the details depend on the IVI system. Used in SetDisplayLayout.
*/
- (instancetype)initWithPredefinedLayout:(SDLPredefinedLayout)predefinedLayout;
#ifndef __cplusplus
/**
Init with the required values.
@param template Predefined or dynamically created window template. Currently only predefined window template layouts are defined.
*/
- (instancetype)initWithTemplate:(NSString *)template;
/**
Convinience constructor with all the parameters.
@param template Predefined or dynamically created window template. Currently only predefined window template layouts are defined.
@param dayColorScheme The color scheme to use when the head unit is in a light / day situation. If nil, the existing color scheme will be used.
@param nightColorScheme The color scheme to use when the head unit is in a dark / night situation.
*/
- (instancetype)initWithTemplate:(NSString *)template dayColorScheme:(nullable SDLTemplateColorScheme *)dayColorScheme nightColorScheme:(nullable SDLTemplateColorScheme *)nightColorScheme;
/**
Predefined or dynamically created window template. Currently only predefined window template layouts are defined.
*/
@property (strong, nonatomic) NSString *template;
#endif
#ifdef __cplusplus
/**
Init with the required values.
@param templateName Predefined or dynamically created window template. Currently only predefined window template layouts are defined.
*/
- (instancetype)initWithTemplate:(NSString *)templateName;
/**
Convinience constructor with all the parameters.
@param templateName Predefined or dynamically created window template. Currently only predefined window template layouts are defined.
@param dayColorScheme The color scheme to use when the head unit is in a light / day situation. If nil, the existing color scheme will be used.
@param nightColorScheme The color scheme to use when the head unit is in a dark / night situation.
*/
- (instancetype)initWithTemplate:(NSString *)templateName dayColorScheme:(nullable SDLTemplateColorScheme *)dayColorScheme nightColorScheme:(nullable SDLTemplateColorScheme *)nightColorScheme;
/**
Predefined or dynamically created window template. Currently only predefined window template layouts are defined.
*/
@property (strong, nonatomic) NSString *templateName;
#endif
/**
The color scheme to use when the head unit is in a light / day situation.
*/
@property (strong, nonatomic, nullable) SDLTemplateColorScheme *dayColorScheme;
/**
The color scheme to use when the head unit is in a dark / night situation.
*/
@property (strong, nonatomic, nullable) SDLTemplateColorScheme *nightColorScheme;
@end
NS_ASSUME_NONNULL_END