<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 10.0.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HomeKit",
  "identifier" : "/documentation/HomeKit/HMCameraSnapshotControlDelegate/cameraSnapshotControl(_:didTake:error:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "HomeKit"
    ],
    "preciseIdentifier" : "c:objc(pl)HMCameraSnapshotControlDelegate(im)cameraSnapshotControl:didTakeSnapshot:error:"
  },
  "title" : "cameraSnapshotControl(_:didTake:error:)"
}
-->

# cameraSnapshotControl(_:didTake:error:)

Tells the delegate that the camera has taken a new snapshot.

```
optional func cameraSnapshotControl(_ cameraSnapshotControl: HMCameraSnapshotControl, didTake snapshot: HMCameraSnapshot?, error: (any Error)?)
```

## Parameters

`cameraSnapshotControl`

The camera snapshot control responsible for the new snapshot.

`snapshot`

The snapshot taken by the camera. `nil` if there was a problem.

`error`

An error that is populated if there was a problem taking the snapshot; `nil` otherwise.

## Discussion

---

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)