Type Property

builtInDualCamera

A combination of wide-angle and telephoto cameras that creates a capture device.

Declaration

static let builtInDualCamera: AVCaptureDevice.DeviceType

Discussion

The capture device created is capable of photo, video, and depth capture, with enhanced zoom and dual-image capture features.

Devices of this type support the following new features:

  • Automatic switching between cameras to obtain a higher quality image for the current combination of zoom factor, light level, and focus position.

  • Capturing higher-quality still images when zoomed in, by automatically fusing images from both cameras.

Devices of this type do not support:

  • Custom exposure modes and manual exposure bracketing.

  • Locking focus with a specific lens position.

  • Locking white balance with a specific white balance gains setting.

To use these features, specifically select the builtInWideAngleCamera or builtInTelephotoCamera device instead.

When using a dual-camera device, exposure duration, ISO, aperture, white balance gains, or lens position may change when the device automatically switches between cameras, even while locked. However, the overall exposure, white balance, and focus position should remain generally consistent.

See Also

Capture Device Types

static let builtInDualWideCamera: AVCaptureDevice.DeviceType

A device that consists of two cameras of fixed focal length, one ultrawide angle and one wide angle.

static let builtInTripleCamera: AVCaptureDevice.DeviceType

A device that consists of three cameras of fixed focal length, one ultrawide angle, one wide angle, and one telephoto.

static let builtInUltraWideCamera: AVCaptureDevice.DeviceType

A built-in camera with a shorter focal length than that of a wide-angle camera.

static let builtInTelephotoCamera: AVCaptureDevice.DeviceType

A built-in camera device with a longer focal length than a wide-angle camera.

static let builtInTrueDepthCamera: AVCaptureDevice.DeviceType

A combination of cameras and other sensors that creates a capture device capable of photo, video, and depth capture.