-
Notifications
You must be signed in to change notification settings - Fork 244
/
CountlyRemoteConfigInternal.h
49 lines (36 loc) · 1.95 KB
/
CountlyRemoteConfigInternal.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
// CountlyLocationManager.h
//
// This code is provided under the MIT License.
//
// Please visit www.count.ly for more information.
#import <Foundation/Foundation.h>
#import "CountlyRCData.h"
@interface CountlyRemoteConfigInternal : NSObject
@property (nonatomic) BOOL isRCAutomaticTriggersEnabled;
@property (nonatomic) BOOL isRCValueCachingEnabled;
@property (nonatomic) BOOL enrollABOnRCDownload;
@property (nonatomic, copy) void (^remoteConfigCompletionHandler)(NSError * error);
@property (nonatomic) NSMutableArray<RCDownloadCallback> *remoteConfigGlobalCallbacks;
+ (instancetype)sharedInstance;
- (void)startRemoteConfig;
- (void)clearAll;
- (void)clearCachedRemoteConfig;
- (id)remoteConfigValueForKey:(NSString *)key;
- (void)updateRemoteConfigForKeys:(NSArray *)keys omitKeys:(NSArray *)omitKeys completionHandler:(void (^)(NSError * error))completionHandler;
- (void)downloadRemoteConfigAutomatically;
- (CountlyRCData *)getValue:(NSString *)key;
- (NSDictionary<NSString*, CountlyRCData *> *)getAllValues;
- (CountlyRCData *)getValueAndEnroll:(NSString *)key;
- (NSDictionary<NSString*, CountlyRCData *> *)getAllValuesAndEnroll;
- (void)downloadValuesForKeys:(NSArray *)keys omitKeys:(NSArray *)omitKeys completionHandler:(RCDownloadCallback)completionHandler;
- (NSDictionary *)testingGetAllVariants;
- (NSArray *)testingGetVariantsForKey:(NSString *)key;
- (void)testingDownloadAllVariants:(RCVariantCallback)completionHandler;
- (void)testingEnrollIntoVariant:(NSString *)key variantName:(NSString *)variantName completionHandler:(RCVariantCallback)completionHandler;
- (void) testingDownloadExperimentInformation:(RCVariantCallback)completionHandler;
- (NSDictionary<NSString*, CountlyExperimentInformation*> *) testingGetAllExperimentInfo;
- (void)enrollIntoABTestsForKeys:(NSArray *)keys;
- (void)exitABTestsForKeys:(NSArray *)keys;
- (void)registerDownloadCallback:(RCDownloadCallback) callback;
- (void)removeDownloadCallback:(RCDownloadCallback) callback;
@end