Instance Property


The type of device that captured the photo.


var sourceDeviceType: AVCaptureDevice.DeviceType? { get }


When you capture dual photos with a builtInDualCamera device and the isDualCameraDualPhotoDeliveryEnabled setting, use this property to determine which of the two resulting photo objects is from the builtInWideAngleCamera or builtInTelephotoCamera device.

For all other captures, this property's value is equal to the deviceType property of the capture device to which the photo output is connected.

This property's value can be nil if the AVCapturePhoto object did not come from an AVCaptureDevice capture.

See Also

Accessing Photo Metadata

var depthData: AVDepthData?

Depth or disparity map data captured with the photo.

class AVDepthData

A container for per-pixel distance or disparity information captured by compatible camera devices.

var cameraCalibrationData: AVCameraCalibrationData?

Calibration information for the camera device that captured the photo.

class AVCameraCalibrationData

Information about the camera characteristics used to capture images and depth data.

var metadata: [String : Any]

A dictionary of metadata describing the captured image.

var portraitEffectsMatte: AVPortraitEffectsMatte?

The portrait effects matte captured with the photo.