-
Notifications
You must be signed in to change notification settings - Fork 195
Expand file tree
/
Copy pathAmplitude.h
More file actions
555 lines (367 loc) · 25.6 KB
/
Amplitude.h
File metadata and controls
555 lines (367 loc) · 25.6 KB
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
//
// Amplitude.h
#import <Foundation/Foundation.h>
#import "AMPIdentify.h"
#import "AMPRevenue.h"
/**
Amplitude iOS SDK.
Use the Amplitude SDK to track events in your application.
Setup:
1. In every file that uses analytics, import Amplitude.h at the top `#import "Amplitude.h"`
2. Be sure to set the API key and initialize the SDK in your app's didFinishLaunchingWithOptions delegate `[[[Amplitude instance] setApiKey:@"YOUR_API_KEY_HERE"] initialize];`
3. Track an event anywhere in the app with `[[Amplitude instance] logEvent:@"EVENT_IDENTIFIER_HERE"];`
4. You can attach additional data to any event by passing a NSDictionary object:
NSMutableDictionary *eventProperties = [NSMutableDictionary dictionary];
[eventProperties setValue:@"VALUE_GOES_HERE" forKey:@"KEY_GOES_HERE"];
[[Amplitude instance] logEvent:@"Compute Hash" withEventProperties:eventProperties];
5. You can configure the SDK via configurable properties and helper methods. You can modify the instance properties at any time, for example `[Amplitude instance].trackingSessionEvents = YES;`. If you plan to call any helper methods to configure the SDK before the first event is logged (for example `setUserId`, or `enableLocationListening`, or `userAdvertisingIdForDeviceId`), you need to do so after calling setApiKey and before calling initialize. For example `[[[[Amplitude instance] setApiKey:@"YOUR_API_KEY_HERE"] setUserId:"@userId"] initialize];`, otherwise you can call them when appropriate, for example calling `setUserId` after the user logs in, etc.
**Note:** you should call SDK methods on an Amplitude instance, for example logging events with the default instance: `[[Amplitude instance] logEvent:@"testEvent"];`
**Note:** the SDK supports tracking data to multiple Amplitude apps, via separate named instances. For example: `[[Amplitude instanceWithName:@"app1"] logEvent:@"testEvent"];` See [Tracking Events to Multiple Apps](https://github.com/amplitude/amplitude-ios#tracking-events-to-multiple-amplitude-apps).
For more details on the setup and usage, be sure to checkout the [README](https://github.com/amplitude/Amplitude-iOS#amplitude-ios-sdk)
*/
@interface Amplitude : NSObject
#pragma mark - Properties
/**-----------------------------------------------------------------------------
* @name Instance Properties
* -----------------------------------------------------------------------------
*/
/**
API key for your Amplitude App.
*/
@property (nonatomic, strong, readonly) NSString *apiKey;
/**
Identifier for the current user.
*/
@property (nonatomic, strong, readonly) NSString *userId;
/**
Identifier for the current device.
*/
@property (nonatomic, strong, readonly) NSString *deviceId;
/**
Name of the SDK instance (ex: no name for default instance, or custom name for a named instance)
*/
@property (nonatomic, strong, readonly) NSString *instanceName;
@property (nonatomic ,strong, readonly) NSString *propertyListPath;
/**-----------------------------------------------------------------------------
* @name Configurable SDK thresholds and parameters
* -----------------------------------------------------------------------------
*/
/**
The maximum number of events that can be stored locally before forcing an upload. The default is 30 events.
*/
@property (nonatomic, assign) int eventUploadThreshold;
/**
The maximum number of events that can be uploaded in a single request. The default is 100 events.
*/
@property (nonatomic, assign) int eventUploadMaxBatchSize;
/**
The maximum number of events that can be stored lcoally. The default is 1000 events.
*/
@property (nonatomic, assign) int eventMaxCount;
/**
The amount of time after an event is logged that events will be batched before being uploaded to the server. The default is 30 seconds.
*/
@property (nonatomic, assign) int eventUploadPeriodSeconds;
/**
When a user closes and reopens the app within minTimeBetweenSessionsMillis milliseconds, the reopen is considered part of the same session and the session continues. Otherwise, a new session is created. The default is 15 minutes.
*/
@property (nonatomic, assign) long minTimeBetweenSessionsMillis;
/**
Whether to automatically log start and end session events corresponding to the start and end of a user's session.
*/
@property (nonatomic, assign) BOOL trackingSessionEvents;
#pragma mark - Methods
/**-----------------------------------------------------------------------------
* @name Fetching Amplitude SDK instance
* -----------------------------------------------------------------------------
*/
/**
This fetches the default SDK instance. Recommended if you are only logging events to a single app.
@returns the default Amplitude SDK instance
*/
+ (Amplitude *)instance;
/**
This fetches a named SDK instance. Use this if logging events to multiple Amplitude apps.
@param instanceName the name of the SDK instance to fetch.
@returns the Amplitude SDK instance corresponding to `instanceName`
@see [Tracking Events to Multiple Amplitude Apps](https://github.com/amplitude/amplitude-ios#tracking-events-to-multiple-amplitude-apps)
*/
+ (Amplitude *)instanceWithName:(NSString*) instanceName;
/**-----------------------------------------------------------------------------
* @name Set your Amplitude API Key
* -----------------------------------------------------------------------------
*/
/**
Set your Amplitude API key in the Amplitude instance.
We recommend you set the api key in your app's "didFinishLaunchingWithOptions" method inside your app delegate.
**Note:** this is required before you can log any events as well as configure the SDK with any of the helper methods.
@param apiKey Your Amplitude key obtained from your dashboard at https://amplitude.com/settings
@returns the same [Amplitude](#) instance, allowing you to chain multiple method calls together like `[[[Amplitude instance] setApiKey:@"YOUR_API_KEY"] initialize];`
*/
- (Amplitude *)setApiKey:(NSString*) apiKey;
/**-----------------------------------------------------------------------------
* @name Initialize the SDK
* -----------------------------------------------------------------------------
*/
/**
After you set the API key call this to enable event tracking.
**Note:** If you are configuring the SDK before tracking the first event, do so before calling initialize. For example: `[[[[Amplitude instance] setApiKey:@"YOUR_API_KEY_HERE"] setUserId:"@userId"] initialize];`.
**Note:** this is required before you can log any events.
@param apiKey Your Amplitude key obtained from your dashboard at https://amplitude.com/settings
@returns the same [Amplitude](#) instance, allowing you to chain multiple method calls together.
*/
- (Amplitude *)initialize;
/**-----------------------------------------------------------------------------
* @name Logging Events
* -----------------------------------------------------------------------------
*/
/**
Tracks an event. Events are saved locally.
Uploads are batched to occur every 30 events or every 30 seconds (whichever comes first), as well as on app close.
@param eventType The name of the event you wish to track.
@see [Tracking Events](https://github.com/amplitude/amplitude-ios#tracking-events)
*/
- (void)logEvent:(NSString*) eventType;
/**
Tracks an event. Events are saved locally.
Uploads are batched to occur every 30 events or every 30 seconds (whichever comes first), as well as on app close.
@param eventType The name of the event you wish to track.
@param eventProperties You can attach additional data to any event by passing a NSDictionary object with property: value pairs.
@see [Tracking Events](https://github.com/amplitude/amplitude-ios#tracking-events)
*/
- (void)logEvent:(NSString*) eventType withEventProperties:(NSDictionary*) eventProperties;
/**
Tracks an event. Events are saved locally.
Uploads are batched to occur every 30 events or every 30 seconds (whichever comes first), as well as on app close.
@param eventType The name of the event you wish to track.
@param eventProperties You can attach additional data to any event by passing a NSDictionary object with property: value pairs.
@param outOfSession If YES, will track the event as out of session. Useful for push notification events.
@see [Tracking Events](https://github.com/amplitude/amplitude-ios#tracking-events)
@see [Tracking Sessions](https://github.com/amplitude/Amplitude-iOS#tracking-sessions)
*/
- (void)logEvent:(NSString*) eventType withEventProperties:(NSDictionary*) eventProperties outOfSession:(BOOL) outOfSession;
/**
Tracks an event. Events are saved locally.
Uploads are batched to occur every 30 events or every 30 seconds (whichever comes first), as well as on app close.
@param eventType The name of the event you wish to track.
@param eventProperties You can attach additional data to any event by passing a NSDictionary object with property: value pairs.
@param groups You can specify event-level groups for this user by passing a NSDictionary object with groupType: groupName pairs. Note the keys need to be strings, and the values can either be strings or an array of strings.
@see [Tracking Events](https://github.com/amplitude/amplitude-ios#tracking-events)
@see [Setting Groups](https://github.com/amplitude/Amplitude-iOS#setting-groups)
*/
- (void)logEvent:(NSString*) eventType withEventProperties:(NSDictionary*) eventProperties withGroups:(NSDictionary*) groups;
/**
Tracks an event. Events are saved locally.
Uploads are batched to occur every 30 events or every 30 seconds (whichever comes first), as well as on app close.
@param eventType The name of the event you wish to track.
@param eventProperties You can attach additional data to any event by passing a NSDictionary object with property: value pairs.
@param groups You can specify event-level groups for this user by passing a NSDictionary object with groupType: groupName pairs. Note the keys need to be strings, and the values can either be strings or an array of strings.
@param outOfSession If YES, will track the event as out of session. Useful for push notification events.
@see [Tracking Events](https://github.com/amplitude/amplitude-ios#tracking-events)
@see [Setting Groups](https://github.com/amplitude/Amplitude-iOS#setting-groups)
@see [Tracking Sessions](https://github.com/amplitude/Amplitude-iOS#tracking-sessions)
*/
- (void)logEvent:(NSString*) eventType withEventProperties:(NSDictionary*) eventProperties withGroups:(NSDictionary*) groups outOfSession:(BOOL) outOfSession;
/**-----------------------------------------------------------------------------
* @name Logging Revenue
* -----------------------------------------------------------------------------
*/
/**
**Note: this is deprecated** - please use `logRevenueV2` and `AMPRevenue`
Tracks revenue.
To track revenue from a user, call [[Amplitude instance] logRevenue:[NSNumber numberWithDouble:3.99]] each time the user generates revenue. logRevenue: takes in an NSNumber with the dollar amount of the sale as the only argument. This allows us to automatically display data relevant to revenue on the Amplitude website, including average revenue per daily active user (ARPDAU), 7, 30, and 90 day revenue, lifetime value (LTV) estimates, and revenue by advertising campaign cohort and daily/weekly/monthly cohorts.
@param amount The amount of revenue to track, e.g. "3.99".
@see [LogRevenue Backwards Compatability](https://github.com/amplitude/Amplitude-iOS#backwards-compatibility)
*/
- (void)logRevenue:(NSNumber*) amount;
/**
**Note: this is deprecated** - please use `logRevenueV2` and `AMPRevenue`
Tracks revenue. This allows us to automatically display data relevant to revenue on the Amplitude website, including average revenue per daily active user (ARPDAU), 7, 30, and 90 day revenue, lifetime value (LTV) estimates, and revenue by advertising campaign cohort and daily/weekly/monthly cohorts.
@param productidentifier The identifier for the product in the transaction, e.g. "com.amplitude.productId"
@param quantity The number of products in the transaction. Revenue amount is calculated as quantity * price
@param price The price of the products in the transaction. Revenue amount is calculated as quantity * price
@see [LogRevenueV2](https://github.com/amplitude/Amplitude-iOS#tracking-revenue)
@see [LogRevenue Backwards Compatability](https://github.com/amplitude/Amplitude-iOS#backwards-compatibility)
*/
- (void)logRevenue:(NSString*) productIdentifier quantity:(NSInteger) quantity price:(NSNumber*) price;
/**
**Note: this is deprecated** - please use `logRevenueV2` and `AMPRevenue`
Tracks revenue. This allows us to automatically display data relevant to revenue on the Amplitude website, including average revenue per daily active user (ARPDAU), 7, 30, and 90 day revenue, lifetime value (LTV) estimates, and revenue by advertising campaign cohort and daily/weekly/monthly cohorts.
For validating revenue, use [[Amplitude instance] logRevenue:@"com.company.app.productId" quantity:1 price:[NSNumber numberWithDouble:3.99] receipt:transactionReceipt]
@param productidentifier The identifier for the product in the transaction, e.g. "com.amplitude.productId"
@param quantity The number of products in the transaction. Revenue amount is calculated as quantity * price
@param price The price of the products in the transaction. Revenue amount is calculated as quantity * price
@param receipt The receipt data from the App Store. Required if you want to verify this revenue event.
@see [LogRevenueV2](https://github.com/amplitude/Amplitude-iOS#tracking-revenue)
@see [LogRevenue Backwards Compatability](https://github.com/amplitude/Amplitude-iOS#backwards-compatibility)
@see [Revenue Verification](https://github.com/amplitude/Amplitude-iOS#revenue-verification)
*/
- (void)logRevenue:(NSString*) productIdentifier quantity:(NSInteger) quantity price:(NSNumber*) price receipt:(NSData*) receipt;
/**
Tracks revenue - API v2. This uses the `AMPRevenue` object to store transaction properties such as quantity, price, and revenue type. This is the recommended method for tracking revenue in Amplitude.
For validating revenue, make sure the receipt data is set on the AMPRevenue object.
To track revenue from a user, create an AMPRevenue object each time the user generates revenue, and set the revenue properties (productIdentifier, price, quantity). logRevenuev2: takes in an AMPRevenue object. This allows us to automatically display data relevant to revenue on the Amplitude website, including average revenue per daily active user (ARPDAU), 7, 30, and 90 day revenue, lifetime value (LTV) estimates, and revenue by advertising campaign cohort and daily/weekly/monthly cohorts.
@param AMPRevenue object revenue object contains all revenue information
@see [Tracking Revenue](https://github.com/amplitude/Amplitude-iOS#tracking-revenue)
*/
- (void)logRevenueV2:(AMPRevenue*) revenue;
/**-----------------------------------------------------------------------------
* @name User Properties and User Property Operations
* -----------------------------------------------------------------------------
*/
/**
Update user properties using operations provided via Identify API.
To update user properties, first create an AMPIdentify object. For example if you wanted to set a user's gender, and then increment their karma count by 1, you would do:
AMPIdentify *identify = [[[AMPIdentify identify] set:@"gender" value:@"male"] add:@"karma" value:[NSNumber numberWithInt:1]];
Then you would pass this AMPIdentify object to the identify function to send to the server:
[[Amplitude instance] identify:identify];
@param identify An AMPIdentify object with the intended user property operations
@see [User Properties and User Property Operations](https://github.com/amplitude/Amplitude-iOS#user-properties-and-user-property-operations)
*/
- (void)identify:(AMPIdentify *)identify;
/**
Adds properties that are tracked on the user level.
**Note:** Property keys must be <code>NSString</code> objects and values must be serializable.
@param userProperties An NSDictionary containing any additional data to be tracked.
@returns the same [Amplitude](#) instance, allowing you to chain multiple method calls together.
@see [Setting Multiple Properties with setUserProperties](https://github.com/amplitude/Amplitude-iOS#setting-multiple-properties-with-setuserproperties)
*/
- (Amplitude *)setUserProperties:(NSDictionary*) userProperties;
/**
**NOTE: this method is deprecated** - use `setUserProperties` instead. In earlier versions of the SDK, replace = YES replaced the in-memory userProperties dictionary with the input; however, now userProperties are no longer stored in memory, so the flag does nothing.
Adds properties that are tracked on the user level.
**Note:** Property keys must be <code>NSString</code> objects and values must be serializable.
@param userProperties An NSDictionary containing any additional data to be tracked.
@param replace This is deprecated. In earlier versions of this SDK, this replaced the in-memory userProperties dictionary with the input, but now userProperties are no longer stored in memory.
@returns the same [Amplitude](#) instance, allowing you to chain multiple method calls together.
@see [Setting Multiple Properties with setUserProperties](https://github.com/amplitude/Amplitude-iOS#setting-multiple-properties-with-setuserproperties)
*/
- (Amplitude *)setUserProperties:(NSDictionary*) userProperties replace:(BOOL) replace;
/**
Clears all properties that are tracked on the user level.
**Note: the result is irreversible!**
@returns the same [Amplitude](#) instance, allowing you to chain multiple method calls together.
@see [Clearing user properties](https://github.com/amplitude/Amplitude-iOS#clearing-user-properties-with-clearuserproperties)
*/
- (Amplitude *)clearUserProperties;
/**
Adds a user to a group or groups. You need to specify a groupType and groupName(s).
For example you can group people by their organization. In that case groupType is "orgId", and groupName would be the actual ID(s). groupName can be a string or an array of strings to indicate a user in multiple groups.
You can also call setGroup multiple times with different groupTypes to track multiple types of groups (up to 5 per app).
**Note:** this will also set groupType: groupName as a user property.
@param groupType You need to specify a group type (for example "orgId").
@param groupName The value for the group name, can be a string or an array of strings, (for example for groupType orgId, the groupName would be the actual id number, like 15).
@returns the same [Amplitude](#) instance, allowing you to chain multiple method calls together.
@see [Setting Groups](https://github.com/amplitude/Amplitude-iOS#setting-groups)
*/
- (Amplitude *)setGroup:(NSString*) groupType groupName:(NSObject*) groupName;
/**-----------------------------------------------------------------------------
* @name Setting User and Device Identifiers
* -----------------------------------------------------------------------------
*/
/**
Sets the userId.
@param userId If your app has its own login system that you want to track users with, you can set the userId.
@returns the same [Amplitude](#) instance, allowing you to chain multiple method calls together.
@see [Setting Custom UserIds](https://github.com/amplitude/Amplitude-iOS#setting-custom-user-ids)
*/
- (Amplitude *)setUserId:(NSString*) userId;
/**
Sets the deviceId.
**NOTE: not recommended unless you know what you are doing**
@param deviceId If your app has its own system for tracking devices, you can set the deviceId.
@returns the same [Amplitude](#) instance, allowing you to chain multiple method calls together.
@see [Setting Custom Device Ids](https://github.com/amplitude/Amplitude-iOS#custom-device-ids)
*/
- (Amplitude *)setDeviceId:(NSString*) deviceId;
/**-----------------------------------------------------------------------------
* @name Configuring the SDK instance
* -----------------------------------------------------------------------------
*/
/**
Enables tracking opt out.
If the user wants to opt out of all tracking, use this method to enable opt out for them. Once opt out is enabled, no events will be saved locally or sent to the server. Calling this method again with enabled set to NO will turn tracking back on for the user.
@param enabled Whether tracking opt out should be enabled or disabled.
@returns the same [Amplitude](#) instance, allowing you to chain multiple method calls together.
*/
- (Amplitude *)setOptOut:(BOOL)enabled;
/**
Disables sending logged events to Amplitude servers.
If you want to stop logged events from being sent to Amplitude severs, use this method to set the client to offline. Once offline is enabled, logged events will not be sent to the server until offline is disabled. Calling this method again with offline set to NO will allow events to be sent to server and the client will attempt to send events that have been queued while offline.
@param offline Whether logged events should be sent to Amplitude servers.
@returns the same [Amplitude](#) instance, allowing you to chain multiple method calls together.
*/
- (Amplitude *)setOffline:(BOOL)offline;
/**
Enables location tracking.
If the user has granted your app location permissions, the SDK will also grab the location of the user. Amplitude will never prompt the user for location permissions itself, this must be done by your app.
@returns the same [Amplitude](#) instance, allowing you to chain multiple method calls together.
**Note:** the user's location is only fetched once per session. Use `updateLocation` to force the SDK to fetch the user's latest location.
*/
- (Amplitude *)enableLocationListening;
/**
Disables location tracking. If you want location tracking disabled on startup of the app, call disableLocationListening before you call initializeApiKey.
@returns the same [Amplitude](#) instance, allowing you to chain multiple method calls together.
*/
- (Amplitude *)disableLocationListening;
/**
Forces the SDK to update with the user's last known location if possible.
If you want to manually force the SDK to update with the user's last known location, call updateLocation.
*/
- (void)updateLocation;
/**
Uses advertisingIdentifier instead of identifierForVendor as the device ID
Apple prohibits the use of advertisingIdentifier if your app does not have advertising. Useful for tying together data from advertising campaigns to anlaytics data.
@returns the same [Amplitude](#) instance, allowing you to chain multiple method calls together.
**NOTE:** If the current device already has a deviceId, calling useAdvertisingIdForDeviceId will override it with the advertisingIdentifier.
*/
- (Amplitude *)useAdvertisingIdForDeviceId;
/**-----------------------------------------------------------------------------
* @name Other Methods
* -----------------------------------------------------------------------------
*/
/**
Whether or to opt the current user out of tracking. If true then this blocks the logging of any events and properties, and blocks the sending of events to Amplitude servers.
*/
- (BOOL)optOut;
/**
Prints the number of events in the queue.
Debugging method to find out how many events are being stored locally on the device.
*/
- (void)printEventsCount;
/**
Fetches the deviceId, a unique identifier shared between multiple users using the same app on the same device.
@returns the deviceId.
*/
- (NSString*)getDeviceId;
/**
Fetches the current sessionId, an identifier used by Amplitude to group together events tracked during the same session.
@returns the current session id
@see [Tracking Sessions](https://github.com/amplitude/Amplitude-iOS#tracking-sessions)
*/
- (long long)getSessionId;
/**
Manually forces the instance to immediately upload all unsent events.
Events are saved locally. Uploads are batched to occur every 30 events and every 30 seconds, as well as on app close. Use this method to force the class to immediately upload all queued events.
*/
- (void)uploadEvents;
#pragma mark - Deprecated methods
- (void)startSession __attribute((deprecated()));
+ (void)logEvent:(NSString*) eventType __attribute((deprecated()));
+ (void)logEvent:(NSString*) eventType withEventProperties:(NSDictionary*) eventProperties __attribute((deprecated()));
+ (void)logRevenue:(NSNumber*) amount __attribute((deprecated()));
+ (void)logRevenue:(NSString*) productIdentifier quantity:(NSInteger) quantity price:(NSNumber*) price __attribute((deprecated())) __attribute((deprecated()));
+ (void)logRevenue:(NSString*) productIdentifier quantity:(NSInteger) quantity price:(NSNumber*) price receipt:(NSData*) receipt __attribute((deprecated()));
+ (void)uploadEvents __attribute((deprecated()));
+ (void)setUserProperties:(NSDictionary*) userProperties __attribute((deprecated()));
+ (void)setUserId:(NSString*) userId __attribute((deprecated()));
+ (void)enableLocationListening __attribute((deprecated()));
+ (void)disableLocationListening __attribute((deprecated()));
+ (void)useAdvertisingIdForDeviceId __attribute((deprecated()));
+ (void)printEventsCount __attribute((deprecated()));
+ (NSString*)getDeviceId __attribute((deprecated()));
@end
#pragma mark - constants
extern NSString *const kAMPSessionStartEvent;
extern NSString *const kAMPSessionEndEvent;
extern NSString *const kAMPRevenueEvent;