-
Notifications
You must be signed in to change notification settings - Fork 244
/
CountlyRemoteConfig.h
51 lines (29 loc) · 1.52 KB
/
CountlyRemoteConfig.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
// CountlyRemoteConfig.h
//
// This code is provided under the MIT License.
//
// Please visit www.count.ly for more information.
#import <Foundation/Foundation.h>
#import "CountlyRCData.h"
#import "CountlyExperimentInformation.h"
@interface CountlyRemoteConfig : NSObject
+ (instancetype)sharedInstance;
- (CountlyRCData *)getValue:(NSString *)key;
- (NSDictionary<NSString*, CountlyRCData *> *)getAllValues;
- (CountlyRCData *)getValueAndEnroll:(NSString *)key;
- (NSDictionary<NSString*, CountlyRCData *> *)getAllValuesAndEnroll;
-(void)registerDownloadCallback:(RCDownloadCallback) callback;
-(void)removeDownloadCallback:(RCDownloadCallback) callback;
- (void)downloadKeys:(RCDownloadCallback)completionHandler;
- (void)downloadSpecificKeys:(NSArray *)keys completionHandler:(RCDownloadCallback)completionHandler;
- (void)downloadOmittingKeys:(NSArray *)omitKeys completionHandler:(RCDownloadCallback)completionHandler;
- (void)enrollIntoABTestsForKeys:(NSArray *)keys;
- (void)exitABTestsForKeys:(NSArray *)keys;
- (NSDictionary *)testingGetAllVariants;
- (NSArray *)testingGetVariantsForKey:(NSString *)key;
- (void)testingDownloadVariantInformation:(RCVariantCallback)completionHandler;
- (void)testingEnrollIntoVariant:(NSString *)key variantName:(NSString *)variantName completionHandler:(RCVariantCallback)completionHandler;
- (void) testingDownloadExperimentInformation:(RCVariantCallback)completionHandler;
- (NSDictionary<NSString*, CountlyExperimentInformation*> *) testingGetAllExperimentInfo;
- (void)clearAll;
@end