summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-03-12 15:04:44 -0800
committerMinh Nguyễn <mxn@1ec5.org>2016-03-14 12:54:02 -0700
commitac541290607e968343490c046e0d4e5f48471bba (patch)
treeef98ba7a92c8205b2d550575d32b11d509384144
parentcaef1785eb8bb5471ccfbd6a8327888513818134 (diff)
downloadqtlocation-mapboxgl-ac541290607e968343490c046e0d4e5f48471bba.tar.gz
[ios, osx] Allow null completion handlers in MGLOfflineStorage
Cherry-picked from f6c21a0efebbda69591fa922de4af96c59933d2f.
-rw-r--r--platform/darwin/include/MGLOfflineStorage.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/darwin/include/MGLOfflineStorage.h b/platform/darwin/include/MGLOfflineStorage.h
index 022c1f0a1e..4f3432163b 100644
--- a/platform/darwin/include/MGLOfflineStorage.h
+++ b/platform/darwin/include/MGLOfflineStorage.h
@@ -66,7 +66,7 @@ typedef void (^MGLOfflinePackListingCompletionHandler)(NS_ARRAY_OF(MGLOfflinePac
@param completion The completion handler to call once the pack has been added.
This handler is executed asynchronously on the main queue.
*/
-- (void)addPackForRegion:(id <MGLOfflineRegion>)region withContext:(NSData *)context completionHandler:(MGLOfflinePackAdditionCompletionHandler)completion;
+- (void)addPackForRegion:(id <MGLOfflineRegion>)region withContext:(NSData *)context completionHandler:(nullable MGLOfflinePackAdditionCompletionHandler)completion;
/**
Unregisters the given offline pack and frees any resources that are no longer
@@ -82,7 +82,7 @@ typedef void (^MGLOfflinePackListingCompletionHandler)(NS_ARRAY_OF(MGLOfflinePac
@param completion The completion handler to call once the pack has been
removed. This handler is executed asynchronously on the main queue.
*/
-- (void)removePack:(MGLOfflinePack *)pack withCompletionHandler:(MGLOfflinePackRemovalCompletionHandler)completion;
+- (void)removePack:(MGLOfflinePack *)pack withCompletionHandler:(nullable MGLOfflinePackRemovalCompletionHandler)completion;
/**
Asynchronously calls a completion callback with all existing offline packs.