summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLNetworkConfiguration_Private.h
blob: 8d55aea220921ac36ee1c2e3f6ce13de9db0fd36 (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

extern NSString * const kMGLDownloadPerformanceEvent;

@protocol MGLNetworkEventDelegate <NSObject>

@optional
- (void)networkConfiguration:(MGLNetworkConfiguration *)networkConfiguration didReceiveNetworkEvent:(NSDictionary *)event;

@end

@interface MGLNetworkConfiguration (Private)

@property (nonatomic, strong) NSMutableDictionary<NSString*, NSDictionary*> *events;
@property (nonatomic, weak, nullable) id<MGLNetworkEventDelegate> delegate;

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

@end

NS_ASSUME_NONNULL_END