Instance Property

sourceDeviceType

The type of device that captured the photo.

Declaration

@property(readonly) AVCaptureDeviceType sourceDeviceType;

Discussion

When you capture dual photos with a AVCaptureDeviceTypeBuiltInDualCamera device and the dualCameraDualPhotoDeliveryEnabled setting, use this property to determine which of the two resulting photo objects is from the AVCaptureDeviceTypeBuiltInWideAngleCamera or AVCaptureDeviceTypeBuiltInTelephotoCamera 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

depthData

Depth or disparity map data captured with the photo.

AVDepthData

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

cameraCalibrationData

Calibration information for the camera device that captured the photo.

AVCameraCalibrationData

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

metadata

A dictionary of metadata describing the captured image.

portraitEffectsMatte

The portrait effects matte captured with the photo.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software