Added MGLSDKMetricsManager to keep track of SDK related events such as tile download times. * [ios, macos] Add tile download performance event. * [ios, macos] Modify the performance event format. * [ios, macos] Add Mapbox Maps SDK events manager. * [ios, macos] Remove events delegate. * [ios, macos] Remove deprecated macro. * [ios, macos] Rename MGLEventsManager to MGLMetricsManager. * [ios, macos] Make MGLMetricsDelegate follow delegate convention. * [ios, macos] Remove mbgl-filesource target dependency on MGLMetricsManager. * [ios, macos] Update metrics manager documentation. * [ios, macos] Add device metadata. * [ios, macos] Rename MGLMetricsManager to MGLSDKMetricsManager.
19 lines
432 B
Objective-C
19 lines
432 B
Objective-C
#import <Foundation/Foundation.h>
|
|
#import "MMEEventsManager.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@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
|