diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-03-28 18:06:52 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-03-29 11:46:27 -0700 |
commit | 38116e39c5832851a585798ab32de3daa03c20e3 (patch) | |
tree | 65479b7e5e29dacedb2d0ed27b519e0890f4bd92 /platform/darwin/src/MGLOfflinePack_Private.h | |
parent | 78f93708d66d99da71e3292c32f34cc4e46ecc69 (diff) | |
download | qtlocation-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.h | 12 |
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 |