<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKMapSnapshotter/CompletionHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:@T@MKMapSnapshotCompletionHandler"
  },
  "title" : "MKMapSnapshotter.CompletionHandler"
}
-->

# MKMapSnapshotter.CompletionHandler

A block that processes the results of a snapshot request.

```
typealias CompletionHandler = (MKMapSnapshotter.Snapshot?, (any Error)?) -> Void
```

## Parameters

`snapshot`

The image data that the snapshotter generates, or `nil` if an error occurs.

`error`

The error that occurs, or `nil` if the framework generates the snapshot successfully.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)