Contents

getSnapshotWithCompletionHandler(_:)

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

Declaration

func getSnapshotWithCompletionHandler(_ completionHandler: @escaping @MainActor @Sendable (MKLookAroundSnapshotter.Snapshot?, (any Error)?) -> Void)
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