<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCapturePhotoCaptureDelegate/photoOutput(_:willBeginCaptureFor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(pl)AVCapturePhotoCaptureDelegate(im)captureOutput:willBeginCaptureForResolvedSettings:"
  },
  "title" : "photoOutput(_:willBeginCaptureFor:)"
}
-->

# photoOutput(_:willBeginCaptureFor:)

Notifies the delegate that the capture output has resolved settings and will soon begin its capture process.

```
optional func photoOutput(_ output: AVCapturePhotoOutput, willBeginCaptureFor resolvedSettings: AVCaptureResolvedPhotoSettings)
```

## Parameters

`output`

The photo output performing the capture.

`resolvedSettings`

An object describing the settings used for this capture. Match this object’s [`uniqueID`](/documentation/AVFoundation/AVCapturePhotoSettings/uniqueID) value to the [`uniqueID`](/documentation/AVFoundation/AVCapturePhotoSettings/uniqueID) property of the photo settings object you initiated capture with to determine which capture request this delegate call corresponds to. You can also use this object to find out which values the photo output has chosen for automatic settings.

## Discussion

The photo output calls this method when it has committed to a choice of settings and will soon begin the capture process. This call occurs as early as possible after your call to the [`capturePhoto(with:delegate:)`](/documentation/AVFoundation/AVCapturePhotoOutput/capturePhoto(with:delegate:)) method, letting you know what to expect for other delegate method calls related to the same capture.

Use this method and the [`AVCaptureResolvedPhotoSettings`](/documentation/AVFoundation/AVCaptureResolvedPhotoSettings) it provides to find out at the earliest possible opportunity which values the photo output has chosen for automatic settings, and what the output dimensions for captured images and movies will be. For example, if you requested capture with the [`flashMode`](/documentation/AVFoundation/AVCapturePhotoSettings/flashMode) property set to [`AVCaptureDevice.FlashMode.auto`](/documentation/AVFoundation/AVCaptureDevice/FlashMode-swift.enum/auto), the resolved photo settings’ [`isFlashEnabled`](/documentation/AVFoundation/AVCaptureResolvedPhotoSettings/isFlashEnabled) property indicates whether the flash will fire during capture.

---

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)