-
Notifications
You must be signed in to change notification settings - Fork 242
Expand file tree
/
Copy pathCountlyContentBuilder.h
More file actions
50 lines (43 loc) · 1.29 KB
/
CountlyContentBuilder.h
File metadata and controls
50 lines (43 loc) · 1.29 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
// CountlyContentBuilder.h
//
// This code is provided under the MIT License.
//
// Please visit www.count.ly for more information.
#import <Foundation/Foundation.h>
#if (TARGET_OS_IOS)
#import <UIKit/UIKit.h>
#endif
NS_ASSUME_NONNULL_BEGIN
@interface CountlyContentBuilder: NSObject
#if (TARGET_OS_IOS)
+ (instancetype)sharedInstance;
/**
* Enables content fetching and updates for the user.
* This method opts the user into receiving content updates
* and ensures that relevant data is fetched accordingly.
*/
- (void)enterContentZone;
/**
* Disables content fetching and updates for the user.
* This method opts the user out of receiving content updates
* and stops any ongoing content retrieval processes.
*/
- (void)exitContentZone;
/**
* Triggers a manual refresh of the content zone.
* This method forces an update by fetching the latest content,
* ensuring the user receives the most up-to-date information.
*/
- (void)refreshContentZone;
/**
* This is an experimental feature and it can have breaking changes
* Previews a specific content by its ID.
* This performs a one-time fetch for the given content
* without starting periodic content updates.
*
* @param contentId the ID of the content to preview
*/
- (void)previewContent:(NSString *)contentId;
#endif
NS_ASSUME_NONNULL_END
@end