Type Alias

MKMapSnapshotCompletionHandler

A block that processes the results of a snapshot request.

Declaration

typedef void (^MKMapSnapshotCompletionHandler)(MKMapSnapshot *snapshot, NSError *error);

Discussion

This block takes the following parameters:

snapshot

The image data that was generated or nil if an error occurred

error

The error that occurred or nil if the snapshot was generated successfully.

See Also

Generating a Snapshot

- startWithCompletionHandler:

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

- startWithQueue:completionHandler:

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

- cancel

Cancels the current request to create a snapshot.

loading

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