summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLAPIClient.h
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2016-08-17 15:30:39 -0400
committerJason Wray <jason@mapbox.com>2016-08-18 11:35:32 -0400
commit256689a33d465e8909e9bc5883ee3340551c7dca (patch)
tree13827aba761640fab50b8a56391699c4fbda99da /platform/ios/src/MGLAPIClient.h
parent7de7f9dc918c3faf2dde3240698b76a97f3e8408 (diff)
downloadqtlocation-mapboxgl-256689a33d465e8909e9bc5883ee3340551c7dca.tar.gz
[ios, macos] Make Xcode 7.3 the minimum required version
- Removes nullability shims for Xcode 6. - Removes MGLTypes.h from files where it was only being used for nullability support. - Accepts that `NS_SWIFT_NAME` is not fully supported by Xcode 7.2 and lower. - Adds documentation about Xcode 7.3 requirement.
Diffstat (limited to 'platform/ios/src/MGLAPIClient.h')
-rw-r--r--platform/ios/src/MGLAPIClient.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/platform/ios/src/MGLAPIClient.h b/platform/ios/src/MGLAPIClient.h
index ef64b021b7..0f8926d360 100644
--- a/platform/ios/src/MGLAPIClient.h
+++ b/platform/ios/src/MGLAPIClient.h
@@ -3,10 +3,14 @@
#import "MGLMapboxEvents.h"
#import "MGLTypes.h"
+NS_ASSUME_NONNULL_BEGIN
+
@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)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