forked from orta/ARAnalytics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ARDSL.h
34 lines (25 loc) · 1.44 KB
/
ARDSL.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
#import "ARAnalytics.h"
#define ARAnalyticsSelector(name) NSStringFromSelector(@selector(name))
extern NSString * const ARAnalyticsTrackedEvents;
extern NSString * const ARAnalyticsTrackedScreens;
extern NSString * const ARAnalyticsClass;
extern NSString * const ARAnalyticsDetails;
extern NSString * const ARAnalyticsProperties;
extern NSString * const ARAnalyticsPageName;
extern NSString * const ARAnalyticsPageNameKeyPath;
extern NSString * const ARAnalyticsEventName;
extern NSString * const ARAnalyticsSelectorName;
extern NSString * const ARAnalyticsEventProperties __attribute__((deprecated("Renamed to ARAnalyticsProperties")));
extern NSString * const ARAnalyticsShouldFire;
typedef NSDictionary*(^ARAnalyticsPropertiesBlock)(id instance, NSArray *arguments);
typedef ARAnalyticsPropertiesBlock ARAnalyticsEventPropertiesBlock __attribute__((deprecated("Renamed to ARAnalyticsPropertiesBlock")));
typedef BOOL(^ARAnalyticsEventShouldFireBlock)(id instance, NSArray *arguments);
@interface ARAnalytics (DSL)
/**
* Startup your ARAnalytics instance with an additional DSL for triggering calls after methods are done
*
* @param analyticsDictionary The normal ARAnalytics dictionary with provider keys & secrets
* @param configurationDictionary A dictionary consisting of ARAnalyticsTrackedEvents & ARAnalyticsTrackedScreens
*/
+ (void)setupWithAnalytics:(NSDictionary *)analyticsDictionary configuration:(NSDictionary *)configurationDictionary;
@end