// // MKMapSnapshotter.h // MapKit // // Copyright (c) 2013-2014, Apple Inc. All rights reserved. // #import @class MKMapSnapshotOptions; @class MKMapSnapshot; NS_ASSUME_NONNULL_BEGIN typedef void (^MKMapSnapshotCompletionHandler)(MKMapSnapshot * __nullable snapshot, NSError * __nullable error); NS_CLASS_AVAILABLE(10_9, 7_0) __TVOS_AVAILABLE(9_2) API_UNAVAILABLE(watchos) @interface MKMapSnapshotter : NSObject - (instancetype)initWithOptions:(MKMapSnapshotOptions *)options NS_DESIGNATED_INITIALIZER; - (void)startWithCompletionHandler:(MKMapSnapshotCompletionHandler)completionHandler; // defaults to the main queue - (void)startWithQueue:(dispatch_queue_t)queue completionHandler:(MKMapSnapshotCompletionHandler)completionHandler; - (void)cancel; @property (nonatomic, readonly, getter=isLoading) BOOL loading; @end NS_ASSUME_NONNULL_END