Type Property

builtInDualCamera

A combination of wide-angle and telephoto cameras that creates a capture device capable of photo, video, and depth capture, with enhanced zoom and dual-image capture features.

Declaration

static let builtInDualCamera: AVCaptureDevice.DeviceType

Discussion

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 builtInWideAngleCamera: AVCaptureDevice.DeviceType

A built-in wide angle camera. These devices are suitable for general purpose use.

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.