-
Notifications
You must be signed in to change notification settings - Fork 10
/
Flurry.s4e
162 lines (143 loc) · 5.82 KB
/
Flurry.s4e
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
include:
//Flurry
//s3eExtFlurry
//no_init_term
#include <s3eTypes.h>
/**
* @defgroup flurryapigroup Flurry Extension API Reference
*
* This extension allows the application to interact with the Flurry
* metrics system.
*
* It is currently supported on iPhone only.
*
* @{
*/
const int32 S3E_FLURRY_PARAM_MAX_CHARS = 255; /**!< max number of chars in string */
struct s3eFlurryParam
{
char key[S3E_FLURRY_PARAM_MAX_CHARS + 1];
char value[S3E_FLURRY_PARAM_MAX_CHARS + 1];
};
functions:
/**
* Initialises a new session with the API key.
*
* @param apiKey The applications Flurry API key.
*/
void s3eFlurryStartSession(const char* apiKey) NULL
void s3eFlurryEndSession() NULL
/**
* Use logEvent to count the number of times certain events happen during a
* session of your application. This can be useful for measuring how often users
* perform various actions, for example. Your application is currently limited
* to counting occurrences for 100 different event ids (maximum length 255
* characters).
*
* @param eventName String identifier for the event.
*/
void s3eFlurryLogEvent(const char* eventName) NULL
/**
* Call this for a timed event.
* Use logEvent to count the number of times certain events happen during a
* session of your application. This can be useful for measuring how often users
* perform various actions, for example. Your application is currently limited
* to counting occurrences for 100 different event ids (maximum length 255
* characters).
*
* @param eventName String identifier for the event.
*/
void s3eFlurryLogEventTimed(const char* eventName) NULL
/**
* Use this version of logEvent to count the number of times certain events happen
* during a session of your application and to pass dynamic parameters to be
* recorded with that event. Event parameters can be passed in as a s3eFlurryParams
* array. For example, you could record that a user used your search box tool
* and also dynamically record which search terms the user entered. Your
* application is currently limited to counting occurrences for 100 different
* event ids (maximum length 255 characters). Maximum of 10 event parameters per
* event is supported.
*
* @param eventName String identifier for the event.
* @param eventParams (key, value) string pairs to be stored with event.
* @par Required Header Files
* s3eExt_Flurry.h
*/
void s3eFlurryLogEventParams(const char* eventName, const char* eventParams) NULL
/**
* Use this for a timed event.
* Use this version of logEvent to count the number of times certain events happen
* during a session of your application and to pass dynamic parameters to be
* recorded with that event. Event parameters can be passed in as a s3eFlurryParams
* array. For example, you could record that a user used your search box tool
* and also dynamically record which search terms the user entered. Your
* application is currently limited to counting occurrences for 100 different
* event ids (maximum length 255 characters). Maximum of 10 event parameters per
* event is supported.
*
* @param eventName String identifier for the event.
* @param eventParams (key, value) string pairs to be stored with event.
* @par Required Header Files
* s3eExt_Flurry.h
*/
void s3eFlurryLogEventParamsTimed(const char* eventName, const char* eventParams) NULL
/**
* Use endTimedEvent to end timed event before app exists, otherwise timed events
* automatically end when app exits. When ending the timed event, a new event
* parameters array can be used to update event parameters. To keep event
* parameters the same, pass in nil for the event parameters array and 0 for numParams.
*
* @param eventName String identifier for the event.
* @param eventParams (key, value) string pairs to be stored with event.
* @par Required Header Files
* s3eExt_Flurry.h
*/
void s3eFlurryEndTimedEvent(const char* eventName, const char* eventParams) NULL
/**
* Use this to log exceptions and/or errors that occur in your app. Flurry will
* report the first 10 errors that occur in each session.
*
* @param errorName Error type identifier
* @param message Details of error
*/
void s3eFlurryLogError(const char* errorName, const char* message) NULL
/**
* Use this to log the user's assigned ID or username in your system after
* identifying the user.
*
* @param userId User ID string
*/
void s3eFlurrySetUserID(const char* userId) NULL
/**
* Use this to log the user age after identifying the user.
*
* @param age Age of the user (Valid inputs are 0 or greater)
*/
void s3eFlurrySetAge(int32 age) NULL
/**
* For each user interaction you want to manually log, you can use countPageView
* to log the page view.
*/
void s3eFlurryCountPageView() NULL
/**
* This option is on by default. When enabled, Flurry will attempt to send session
* data when the app is exited as well as it normally does when the app is started.
* This will improve the speed at which your application analytics are updated but
* can prolong the app termination process due to network latency. In some cases,
* the network latency can cause the app to crash.
*
* @param sendSessionReportsOnClose S3E_TRUE/S3E_FALSE to control whether this happens.
*/
void s3eFlurrySetSessionReportsOnCloseEnabled(s3eBool sendSessionReportsOnClose) NULL
/**
* This option is on by default. When enabled, Flurry will attempt to send session
* data when the app is paused as well as it normally does when the app is started.
* This will improve the speed at which your application analytics are updated but
* can prolong the app pause process due to network latency. In some cases, the
* network latency can cause the app to crash.
*
* @param sendSessionReportsOnPause S3E_TRUE/S3E_FALSE to control whether this happens.
*/
void s3eFlurrySetSessionReportsOnPauseEnabled(s3eBool sendSessionReportsOnPause) NULL
append:
/**@}*/