Contents

AVCapturePhotoSettings

A specification of the features and settings to use for a single photo capture request.

Declaration

class AVCapturePhotoSettings

Mentioned in

Overview

To take a photo, you create and configure a AVCapturePhotoSettings object, then pass it to the AVCapturePhotoOutput capturePhoto(with:delegate:) method.

A AVCapturePhotoSettings instance can include any combination of settings, regardless of whether that combination is valid for a given capture session. When you initiate a capture by passing a photo settings object to the capturePhoto(with:delegate:) method, the photo capture output validates your settings to ensure deterministic behavior. For example, the flashMode setting must specify a value that’s present in the photo output’s supportedFlashModes array. For detailed validation rules, see each property description below.

Topics

Creating photo settings

Inspecting settings

Configuring photo settings

Suppressing the shutter sound

Enabling preview and thumbnail delivery

Configuring Live Photo settings

Configuring constant color

Capturing depth data

Capturing Portrait Effects matte

Capturing semantic segmentation mattes

Embedding metadata

Instance properties

Initializers

See Also

Photo settings