summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLOfflinePack_Private.h
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-03-10 16:47:43 -0800
committerMinh Nguyễn <mxn@1ec5.org>2016-03-10 17:14:14 -0800
commitff9c3a57b05fa3287a126ffd7c66cddc7e0929dc (patch)
tree8f9afdeb34529b06240d07fe8544355e7fb54b2d /platform/darwin/src/MGLOfflinePack_Private.h
parentee20fd8fd8912faa7662e4ea61aaaf9368af4048 (diff)
downloadqtlocation-mapboxgl-ff9c3a57b05fa3287a126ffd7c66cddc7e0929dc.tar.gz
[ios, osx] Renamed MGLOfflineTask to MGLOfflinePack
“Offline pack” more effectively communicates the persistent nature of the downloaded content.
Diffstat (limited to 'platform/darwin/src/MGLOfflinePack_Private.h')
-rw-r--r--platform/darwin/src/MGLOfflinePack_Private.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLOfflinePack_Private.h b/platform/darwin/src/MGLOfflinePack_Private.h
new file mode 100644
index 0000000000..e29018fc36
--- /dev/null
+++ b/platform/darwin/src/MGLOfflinePack_Private.h
@@ -0,0 +1,21 @@
+#import "MGLOfflinePack.h"
+
+#include <mbgl/storage/default_file_source.hpp>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface MGLOfflinePack (Private)
+
+@property (nonatomic, nullable) mbgl::OfflineRegion *mbglOfflineRegion;
+
+- (instancetype)initWithMBGLRegion:(mbgl::OfflineRegion *)region;
+
+/**
+ Invalidates the pack and ensures that no future progress update can ever
+ revalidate it.
+ */
+- (void)invalidate;
+
+@end
+
+NS_ASSUME_NONNULL_END