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

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

@interface MGLAPIClient : NSObject <NSURLSessionDelegate>

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

@end