diff options
Diffstat (limited to 'platform/ios/src/MGLAPIClient.h')
-rw-r--r-- | platform/ios/src/MGLAPIClient.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/platform/ios/src/MGLAPIClient.h b/platform/ios/src/MGLAPIClient.h new file mode 100644 index 0000000000..ef64b021b7 --- /dev/null +++ b/platform/ios/src/MGLAPIClient.h @@ -0,0 +1,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 |