A combination of wide-angle and telephoto cameras that creates a capture device.
SDKs
- iOS 10.2+
- Mac Catalyst 13.0+
Framework
- AVFoundation
Declaration
const AVCapture Device Type AVCaptureDeviceTypeBuiltInDualCamera;
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 AVCapture
or AVCapture
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.
Important
To obtain a device of this type, use the default
method or the AVCapture
class. Other methods do not discover devices of this type.