summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLAPIClient.h
blob: 0f8926d3608d7241be94359e2f9cc14b797dd620 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#import <Foundation/Foundation.h>

#import "MGLMapboxEvents.h"
#import "MGLTypes.h"

NS_ASSUME_NONNULL_BEGIN

@interface MGLAPIClient : NSObject <NSURLSessionDelegate>

- (void)postEvents:(NS_ARRAY_OF(MGLMapboxEventAttributes *) *)events completionHandler:(nullable void (^)(NSError * _Nullable error))completionHandler;
- (void)postEvent:(MGLMapboxEventAttributes *)event completionHandler:(nullable void (^)(NSError * _Nullable error))completionHandler;
- (void)cancelAll;

@end

NS_ASSUME_NONNULL_END