CameraDevice
The CameraDevice represents a physical or virtual Camera Device.
Examples:
Physical: the 0.5x ultra-wide-angle Camera
Virtual: the Triple-Camera consisting of the 0.5x, the 1x, and the 3x Camera
TrueDepth Face ID: a virtual Camera consisting of a color, and a depth Camera
Capabilities listed here are supported individually: whether a combination of features is supported is negotiated by the CameraSession with the Constraint API.
Inheritors
Properties
The matching Desk View camera for this Continuity Camera, if available. iOS only.
The Camera Device's nominal focal length in 35mm film format, if known.
Whether this CameraDevice has a physical flash unit. Front-facing devices may still be able to use a screen-flash for photo capture.
Whether this CameraDevice supports using its flash as a continuous light ("torch").
Whether this camera is a Continuity Camera. Always false on Android.
Whether this CameraDevice is a virtual device, which consists of two or more physical CameraDevices (e.g. the "Triple-Camera" or the "FaceID Camera").
The size (ƒ number) of the lens diaphragm.
A user friendly camera name shown by the system.
The hardware manufacturer name for this device.
The maximum supported exposure bias (in EV units), or 0 if supportsExposureBias is false.
The maximum supported torch strength, or 0 if supportsTorchStrength is false.
The maximum value a single color-channel gain can be set to, or 0 if white balance can not be locked.
The maximum individually supported zoom value of this device. The actual maximum depends on the session configuration, see CameraController.maxZoom.
All MediaTypes this CameraDevice can capture. Most Cameras return [VIDEO], virtual Cameras that also support Depth capture return [VIDEO, DEPTH].
The minimum supported exposure bias (in EV units), or 0 if supportsExposureBias is false.
The minimum supported torch strength, or 0 if supportsTorchStrength is false.
The minimum individually supported zoom value of this device. The actual minimum depends on the session configuration, see CameraController.minZoom.
If this CameraDevice is a virtual device (see isVirtualDevice), the list of all constituent physical devices it is made of. For physical devices, this is an empty list.
The position of this camera on the device.
All frame rate ranges this CameraDevice supports individually, in FPS.
All PixelFormats this CameraDevice can stream in.
All DynamicRanges this CameraDevice supports streaming at (affects Video recordings and Preview).
Whether this CameraDevice supports distortion correction during Photo capture.
Whether this CameraDevice supports biasing auto-exposure.
Whether this CameraDevice supports manual exposure (locking duration and ISO).
Whether this CameraDevice supports metering auto-exposure (MeteringMode.AE).
Whether this CameraDevice supports manual focus (locking the lens position).
Whether this CameraDevice supports metering auto-focus (MeteringMode.AF).
Whether this CameraDevice supports low-light boost to improve exposure in dark scenes.
Whether this CameraDevice supports capturing Photos in High Dynamic Range (HDR).
Whether this CameraDevice supports delivering a preview image before the actual Photo is available.
Whether this CameraDevice supports smoothly adjusting focus.
Whether this CameraDevice supports capturing photos with QualityPrioritization.SPEED.
Whether this CameraDevice supports configuring a custom torch brightness level.
Whether this CameraDevice supports manual white-balance.
Whether this CameraDevice supports metering auto-white-balance (MeteringMode.AWB).
The camera hardware type, for example DeviceType.WIDE_ANGLE.
If this CameraDevice is a virtual device, the zoom factors at which it may switch to another physical camera (e.g. [1, 3] for a 0.5x/1x/3x Triple-Camera). For physical devices, this is an empty list.
Functions
All resolutions this CameraDevice can produce for outputs of the given outputStreamType, or an empty list if that stream type can not be streamed to at all.
Whether the given CameraSessionConfig is supported by this CameraDevice. Configuring a CameraSession with an unsupported config fails.
Whether the given fps is individually supported by any of the supportedFPSRanges.
Whether this CameraDevice supports streaming to the given output.
Whether this CameraDevice supports the given stabilization mode for preview streams.
Whether this CameraDevice supports the given stabilization mode for video streams.