---
title: "getSnapshotWithCompletionHandler(_:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mklookaroundsnapshotter/getsnapshotwithcompletionhandler(_:)"
---

# getSnapshotWithCompletionHandler(_:)

Requests a new snapshot and calls the completion handler you provide.

## Declaration

```swift
func getSnapshotWithCompletionHandler(_ completionHandler: @escaping @MainActor @Sendable (MKLookAroundSnapshotter.Snapshot?, (any Error)?) -> Void)
```

```swift
var snapshot: MKLookAroundSnapshotter.Snapshot { get async throws }
```

## Parameters

- `completionHandler`: A completion handler the framework calls to indicate the success or failure of the snapshot request.

## See Also

### Starting and stopping a snapshot

- [cancel()](mapkit/mklookaroundsnapshotter/cancel().md)
