summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLOfflinePack_Private.h
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-03-28 18:06:52 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-03-29 11:46:27 -0700
commit38116e39c5832851a585798ab32de3daa03c20e3 (patch)
tree65479b7e5e29dacedb2d0ed27b519e0890f4bd92 /platform/darwin/src/MGLOfflinePack_Private.h
parent78f93708d66d99da71e3292c32f34cc4e46ecc69 (diff)
downloadqtlocation-mapboxgl-38116e39c5832851a585798ab32de3daa03c20e3.tar.gz
[ios, osx] Require progress to be requested manually
Requesting progress is expensive, so it is once again computed only on demand, rather than automatically at launch. Moved progress requesting back to iosapp and osxapp.
Diffstat (limited to 'platform/darwin/src/MGLOfflinePack_Private.h')
-rw-r--r--platform/darwin/src/MGLOfflinePack_Private.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/platform/darwin/src/MGLOfflinePack_Private.h b/platform/darwin/src/MGLOfflinePack_Private.h
index 0e92655406..95d8ba4323 100644
--- a/platform/darwin/src/MGLOfflinePack_Private.h
+++ b/platform/darwin/src/MGLOfflinePack_Private.h
@@ -19,17 +19,9 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, nullable) mbgl::OfflineRegion *mbglOfflineRegion;
-- (instancetype)initWithMBGLRegion:(mbgl::OfflineRegion *)region;
+@property (nonatomic, readwrite) MGLOfflinePackState state;
-/**
- Request an asynchronous update to the pack’s `state` and `progress` properties.
-
- The state and progress of an inactive or completed pack are computed lazily. If
- you need the state or progress of a pack inside an
- `MGLOfflinePackListingCompletionHandler`, set the `delegate` property then call
- this method.
- */
-- (void)requestProgress;
+- (instancetype)initWithMBGLRegion:(mbgl::OfflineRegion *)region;
/**
Invalidates the pack and ensures that no future progress update can ever