diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-03-26 14:38:07 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-03-29 11:46:26 -0700 |
commit | e36f31c50302dc2194cc34fab7b89d9cef8c87a5 (patch) | |
tree | f130ddf8770b92ae91416b819b5d233932c09881 /platform/darwin/include | |
parent | ec72faa7891a24795c9b040076de829642be043d (diff) | |
download | qtlocation-mapboxgl-e36f31c50302dc2194cc34fab7b89d9cef8c87a5.tar.gz |
[ios, osx] Allow creating invalid offline packs
Removed NS_UNAVAILABLE attribute from -[MGLOfflinePack init]. Packs initialized with this initializer are doomed to invalidity.
Fixes #4421.
Diffstat (limited to 'platform/darwin/include')
-rw-r--r-- | platform/darwin/include/MGLOfflinePack.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/platform/darwin/include/MGLOfflinePack.h b/platform/darwin/include/MGLOfflinePack.h index 666e442d26..185bba038c 100644 --- a/platform/darwin/include/MGLOfflinePack.h +++ b/platform/darwin/include/MGLOfflinePack.h @@ -83,6 +83,10 @@ typedef struct MGLOfflinePackProgress { /** An `MGLOfflinePack` represents a collection of resources necessary for viewing a region offline to a local database. + + To create an instance of `MGLOfflinePack`, use the + `+[MGLOfflineStorage addPackForRegion:withContext:completionHandler:]` method. + A pack created using `-[MGLOfflinePack init]` is immediately invalid. */ @interface MGLOfflinePack : NSObject @@ -123,8 +127,6 @@ typedef struct MGLOfflinePackProgress { */ @property (nonatomic, readonly) MGLOfflinePackProgress progress; -- (instancetype)init NS_UNAVAILABLE; - /** Resumes downloading if the pack is inactive. |