summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLNetworkConfiguration_Private.h
blob: 18c78a004ad19bb6d2b8657081c289deb678d1fa (plain)
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
#import "MGLNetworkConfiguration.h"

NS_ASSUME_NONNULL_BEGIN

@class MGLNetworkConfiguration;
@protocol MGLNetworkConfigurationMetricsDelegate <NSObject>

- (void)networkConfiguration:(MGLNetworkConfiguration *)networkConfiguration didGenerateMetricEvent:(NSDictionary *)metricEvent;

@end

extern NSString * const kMGLDownloadPerformanceEvent;

@interface MGLNetworkConfiguration (Private)

@property (nonatomic, strong) NSMutableDictionary<NSString*, NSDictionary*> *events;
@property (nonatomic, weak) id<MGLNetworkConfigurationMetricsDelegate> metricsDelegate;

- (void)startDownloadEvent:(NSString *)urlString type:(NSString *)resourceType;
- (void)stopDownloadEvent:(NSString *)urlString;
- (void)cancelDownloadEvent:(NSString *)urlString;

@end

NS_ASSUME_NONNULL_END