Class

MKMapSnapshotter

An MKMapSnapshotter object captures map-based imagery asynchronously. Use instances of this class in situations where you want to capture the system-provided map content, including the map tiles and imagery. The snapshotter object always captures the best image possible, loading all of the available map tiles before capturing the image.

Overview

You use a snapshotter object in conjunction with an MKMapSnapshotOptions object. The snapshot options specify the map configuration to use during the capture process, including which portion of the map you want to capture.

Symbols

Initializing a Snapshotter Object

init(options: MKMapSnapshotOptions)

Initializes and returns a snapshotter object based on the specified options.

Generating a Snapshot

func start(completionHandler: MKMapSnapshotCompletionHandler)

Submits the request to create a snapshot and delivers the results to the specified block.

func start(with: DispatchQueue, completionHandler: MKMapSnapshotCompletionHandler)

Submits the request to create a snapshot and executes the resulting block on the specified queue.

func cancel()

Cancels the current request to create a snapshot.

var isLoading: Bool

A Boolean value indicating whether the snapshotter is currently generating an image.

Constants

MKMapSnapshotCompletionHandler

A block that processes the results of a snapshot request.

Relationships

Inherits From

Conforms To