-
Notifications
You must be signed in to change notification settings - Fork 242
Expand file tree
/
Copy pathCountlyContentConfig.m
More file actions
63 lines (50 loc) · 1.17 KB
/
CountlyContentConfig.m
File metadata and controls
63 lines (50 loc) · 1.17 KB
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
// CountlyContentConfig.m
//
// This code is provided under the MIT License.
//
// Please visit www.count.ly for more information.
#import "CountlyCommon.h"
@interface CountlyContentConfig ()
#if (TARGET_OS_IOS)
@property (nonatomic) ContentCallback contentCallback;
@property (nonatomic) NSUInteger zoneTimerInterval;
@property (nonatomic) WebViewDisplayOption webViewDisplayOption;
#endif
@end
@implementation CountlyContentConfig
- (instancetype)init
{
if (self = [super init])
{
}
return self;
}
#if (TARGET_OS_IOS)
-(void)setGlobalContentCallback:(ContentCallback) callback
{
_contentCallback = callback;
}
- (ContentCallback) getGlobalContentCallback
{
return _contentCallback;
}
-(void)setZoneTimerInterval:(NSUInteger)zoneTimerIntervalSeconds
{
if (zoneTimerIntervalSeconds > 15) {
_zoneTimerInterval = zoneTimerIntervalSeconds;
}
}
- (NSUInteger) getZoneTimerInterval
{
return _zoneTimerInterval;
}
- (void)setWebviewDisplayOption:(WebViewDisplayOption)webViewDisplayOption
{
_webViewDisplayOption = webViewDisplayOption;
}
- (WebViewDisplayOption)getWebViewDisplayOption;
{
return _webViewDisplayOption;
}
#endif
@end