blob: a7d316cc06159083066e9e33157b7251b3cea207 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#import <Foundation/Foundation.h>
#import "MMEEventsManager.h"
NS_ASSUME_NONNULL_BEGIN
/// NSUserDefaults key that controls telemetry user opt-out status
FOUNDATION_EXTERN NSString * const MGLMapboxMetricsEnabledKey;
@interface MGLMapboxEvents : NSObject
+ (nullable instancetype)sharedInstance;
+ (void)setupWithAccessToken:(NSString *)accessToken;
+ (void)pushTurnstileEvent;
+ (void)pushEvent:(NSString *)event withAttributes:(MMEMapboxEventAttributes *)attributeDictionary;
+ (void)flush;
+ (void)ensureMetricsOptoutExists;
@end
NS_ASSUME_NONNULL_END
|