-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFlurryAnalytics.h
executable file
·90 lines (77 loc) · 3.31 KB
/
FlurryAnalytics.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
//
// FlurryAnalytics.h
// Flurry iOS Analytics Agent
//
// Copyright 2009-2011 Flurry, Inc. All rights reserved.
//
// Methods in this header file are for use with Flurry Analytics
#import <UIKit/UIKit.h>
/*!
* \brief Provides all available methods for defining and reporting Analytics from use
* of your app.
*
* Set of methods that allow developers to capture detailed, aggregate information
* regarding the use of their app by end users.
* \author 2009 - 2011 Flurry, Inc. All Rights Reserved.
*/
/*!
* @class FlurryAnalytics
* @abstract Provides all available methods for defining and reporting Analytics from use
* of your app.
* @discussion Set of methods that allow developers to capture detailed, aggregate information
* regarding the use of their app by end users.
* @helps This class provides methods necessary for correct function of FlurryAppCircle.h.
* For information on how to use Flurry's AppCircle SDK to
* attract high-quality users and monetize your user base see http://wiki.flurry.com/index.php?title=AppCircle.
*
*/
@interface FlurryAnalytics : NSObject {
}
/*
optional sdk settings that should be called before start session
*/
+ (void)setAppVersion:(NSString *)version; // override the app version
+ (NSString *)getFlurryAgentVersion; // get the Flurry Agent version number
+ (void)setShowErrorInLogEnabled:(BOOL)value; // default is NO
+ (void)setDebugLogEnabled:(BOOL)value; // generate debug logs for Flurry support, default is NO
+ (void)setSessionContinueSeconds:(int)seconds; // default is 10 seconds
+ (void)setSecureTransportEnabled:(BOOL)value; // set data to be sent over SSL, default is NO
/*
start session, attempt to send saved sessions to server
*/
+ (void)startSession:(NSString *)apiKey;
/*
log events or errors after session has started
*/
+ (void)logEvent:(NSString *)eventName;
+ (void)logEvent:(NSString *)eventName withParameters:(NSDictionary *)parameters;
+ (void)logError:(NSString *)errorID message:(NSString *)message exception:(NSException *)exception;
+ (void)logError:(NSString *)errorID message:(NSString *)message error:(NSError *)error;
/*
start or end timed events
*/
+ (void)logEvent:(NSString *)eventName timed:(BOOL)timed;
+ (void)logEvent:(NSString *)eventName withParameters:(NSDictionary *)parameters timed:(BOOL)timed;
+ (void)endTimedEvent:(NSString *)eventName withParameters:(NSDictionary *)parameters; // non-nil parameters will update the parameters
/*
count page views
*/
+ (void)logAllPageViews:(id)target; // automatically track page view on UINavigationController or UITabBarController
+ (void)logPageView; // manually increment page view by 1
/*
set user info
*/
+ (void)setUserID:(NSString *)userID; // user's id in your system
+ (void)setAge:(int)age; // user's age in years
+ (void)setGender:(NSString *)gender; // user's gender m or f
/*
set location information
*/
+ (void)setLatitude:(double)latitude longitude:(double)longitude horizontalAccuracy:(float)horizontalAccuracy verticalAccuracy:(float)verticalAccuracy;
/*
optional session settings that can be changed after start session
*/
+ (void)setSessionReportsOnCloseEnabled:(BOOL)sendSessionReportsOnClose; // default is YES
+ (void)setSessionReportsOnPauseEnabled:(BOOL)setSessionReportsOnPauseEnabled; // default is NO
+ (void)setEventLoggingEnabled:(BOOL)value; // default is YES
@end