forked from Countly/countly-sdk-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CountlyPersistency.h
46 lines (32 loc) · 1.19 KB
/
CountlyPersistency.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
// CountlyPersistency.h
//
// This code is provided under the MIT License.
//
// Please visit www.count.ly for more information.
#import <Foundation/Foundation.h>
@class CountlyEvent;
@interface CountlyPersistency : NSObject
+ (instancetype)sharedInstance;
- (void)addToQueue:(NSString *)queryString;
- (void)removeFromQueue:(NSString *)queryString;
- (NSString *)firstItemInQueue;
- (void)recordEvent:(CountlyEvent *)event;
- (NSString *)serializedRecordedEvents;
- (void)recordTimedEvent:(CountlyEvent *)event;
- (CountlyEvent *)timedEventForKey:(NSString *)key;
- (void)clearAllTimedEvents;
- (void)saveToFile;
- (void)saveToFileSync;
- (NSString *)retrieveStoredDeviceID;
- (void)storeDeviceID:(NSString *)deviceID;
- (NSString *)retrieveWatchParentDeviceID;
- (void)storeWatchParentDeviceID:(NSString *)deviceID;
- (NSDictionary *)retrieveStarRatingStatus;
- (void)storeStarRatingStatus:(NSDictionary *)status;
- (BOOL)retrieveNotificationPermission;
- (void)storeNotificationPermission:(BOOL)allowed;
- (BOOL)retrieveGeoLocationDisabled;
- (void)storeGeoLocationDisabled:(BOOL)disabled;
@property (nonatomic) NSUInteger eventSendThreshold;
@property (nonatomic) NSUInteger storedRequestsLimit;
@end