AVCapturePhotoSettings
A specification of the features and settings to use for a single photo capture request.
Declaration
class AVCapturePhotoSettingsMentioned 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
init(format:)init(rawPixelFormatType:)init(rawPixelFormatType:processedFormat:)init(rawPixelFormatType:rawFileType:processedFormat:processedFileType:)init(from:)
Inspecting settings
Configuring photo settings
flashModeisAutoRedEyeReductionEnabledmaxPhotoDimensionsphotoQualityPrioritizationisCameraCalibrationDataDeliveryEnabledisAutoContentAwareDistortionCorrectionEnabledisAutoVirtualDeviceFusionEnabledvirtualDeviceConstituentPhotoDeliveryEnabledDevicesisDualCameraDualPhotoDeliveryEnabledisAutoDualCameraFusionEnabledisAutoStillImageStabilizationEnabledisHighResolutionPhotoEnabled
Suppressing the shutter sound
Enabling preview and thumbnail delivery
previewPhotoFormatavailablePreviewPhotoPixelFormatTypesembeddedThumbnailPhotoFormatavailableRawEmbeddedThumbnailPhotoCodecTypesrawEmbeddedThumbnailPhotoFormatavailableEmbeddedThumbnailPhotoCodecTypes