Initiates a photo capture using the specified settings.
- iOS 10.0+
- macOS 10.15+
- Mac Catalyst 13.0+
The settings for the photo capture, such as the output pixel format and flash mode. This method copies the provided
AVCaptureobject, so future changes to that object do not affect the capture in progress.
A delegate object to receive messages about capture progress and results. The photo output calls your delegate methods as the photo advances from capture to processing to delivery of finished images.
Use this method for all variations of still photography, including single photo capture, RAW format capture (with or without a secondary format such as JPEG), bracketed capture of multiple images, and Live Photo capture.
When you call this method, the photo output validates the properties of your
settings object to ensure deterministic behavior. For example, the
flash setting must specify a value that is present in the photo output’s
supported array. See each property’s description in the
AVCapture class reference for detailed validation rules.