summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLOfflineStorage.h
diff options
context:
space:
mode:
authorjmkiley <jordan.kiley@mapbox.com>2019-06-24 15:14:56 -0700
committerjmkiley <jordan.kiley@mapbox.com>2019-07-09 15:03:39 -0700
commit474fe9f5fee3a393efddf5be04f0062693c5f486 (patch)
tree9aebb0042fc0e981479f3a24a19c4585d36116f6 /platform/darwin/src/MGLOfflineStorage.h
parent6b4541b516293ec61bbdb86b4cf9f98cc78e320a (diff)
downloadqtlocation-mapboxgl-474fe9f5fee3a393efddf5be04f0062693c5f486.tar.gz
[ios] add callback method
Diffstat (limited to 'platform/darwin/src/MGLOfflineStorage.h')
-rw-r--r--platform/darwin/src/MGLOfflineStorage.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLOfflineStorage.h b/platform/darwin/src/MGLOfflineStorage.h
index a827a1261d..8ec70a7c7d 100644
--- a/platform/darwin/src/MGLOfflineStorage.h
+++ b/platform/darwin/src/MGLOfflineStorage.h
@@ -352,7 +352,7 @@ MGL_EXPORT
This method should be called before using the database.
*/
-- (void)setMaximumAmbientCacheSize:(uint64_t)cacheSize;
+- (void)setMaximumAmbientCacheSize:(void (^)(unsigned long cacheSize, NSError * _Nullable error))completion;
/*
Forces cache tiles to be invalidated and updated from the tile server. This ensures that the
@@ -360,6 +360,8 @@ MGL_EXPORT
- (void)invalidateAmbientCache;
+- (void)clearAmbientCache;
+
/*
Inserts the provided resource into the ambient cache.