Files
MapLibreParticleLab/platform/ios/src/MGLMapboxEvents.h
2019-08-21 12:14:20 -07:00

22 lines
563 B
Objective-C

#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