-
Notifications
You must be signed in to change notification settings - Fork 244
/
Copy pathCountlyContentConfig.h
53 lines (42 loc) · 1.21 KB
/
CountlyContentConfig.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
// CountlyContentConfig.h
//
// This code is provided under the MIT License.
//
// Please visit www.count.ly for more information.
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
#if (TARGET_OS_IOS)
typedef enum : NSUInteger
{
COMPLETED,
CLOSED,
} ContentStatus;
typedef void (^ContentCallback)(ContentStatus contentStatus, NSDictionary<NSString *, id>* contentData);
#endif
@interface CountlyContentConfig : NSObject
#if (TARGET_OS_IOS)
/**
* This is an experimental feature and it can have breaking changes
* Register global completion blocks to be executed on content.
*/
- (void)setGlobalContentCallback:(ContentCallback) callback;
/**
* This is an experimental feature and it can have breaking changes
* Get content callback
*/
- (ContentCallback) getGlobalContentCallback;
/**
* This is an experimental feature and it can have breaking changes
* Set the interval for the automatic content update calls
* @param zoneTimerIntervalSeconds in seconds
*
*/
-(void)setZoneTimerInterval:(NSUInteger)zoneTimerIntervalSeconds;
/**
* This is an experimental feature and it can have breaking changes
* Get zone timer interval
*/
- (NSUInteger) getZoneTimerInterval;
#endif
NS_ASSUME_NONNULL_END
@end