diff options
author | Julian Rex <julian.rex@gmail.com> | 2018-11-20 14:31:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-20 14:31:09 -0500 |
commit | 53bbf9d6991c1eddfa141ddcfb4b7252874e46ec (patch) | |
tree | 3ad8c97d579c4086b3682e27e6ff3deae52680f6 /platform/darwin/src/MGLMapSnapshotter.h | |
parent | 8b232f693dc3f835bbb91c6c4bdf07020e98c164 (diff) | |
download | qtlocation-mapboxgl-53bbf9d6991c1eddfa141ddcfb4b7252874e46ec.tar.gz |
[ios] Added teardown of core objects when receiving UIApplicationWillTerminateNotification (#13367)
Diffstat (limited to 'platform/darwin/src/MGLMapSnapshotter.h')
-rw-r--r-- | platform/darwin/src/MGLMapSnapshotter.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLMapSnapshotter.h b/platform/darwin/src/MGLMapSnapshotter.h index de509f73f4..2bd9d99fe0 100644 --- a/platform/darwin/src/MGLMapSnapshotter.h +++ b/platform/darwin/src/MGLMapSnapshotter.h @@ -173,6 +173,8 @@ typedef void (^MGLMapSnapshotCompletionHandler)(MGLMapSnapshot* _Nullable snapsh MGL_EXPORT @interface MGLMapSnapshotter : NSObject +- (instancetype)init NS_UNAVAILABLE; + /** Initializes and returns a map snapshotter object that produces snapshots according to the given options. @@ -180,7 +182,7 @@ MGL_EXPORT @param options The options to use when generating a map snapshot. @return An initialized map snapshotter. */ -- (instancetype)initWithOptions:(MGLMapSnapshotOptions *)options; +- (instancetype)initWithOptions:(MGLMapSnapshotOptions *)options NS_DESIGNATED_INITIALIZER; /** Starts the snapshot creation and executes the specified block with the result. |