CameraInfoState

class CameraInfoState(val isZoomSupported: Boolean = false, val isExposureSupported: Boolean = false, val minZoom: Float = 1.0f, val maxZoom: Float = 1.0f, val minExposure: Float = 0.0f, val maxExposure: Float = 0.0f, val isFlashSupported: Boolean = false, val isFlashAvailable: Boolean = false, val isTorchSupported: Boolean = false, val isTorchAvailable: Boolean = false, val isZeroShutterLagSupported: Boolean = false, val isVideoStabilizationSupported: Boolean = false, val isFocusSupported: Boolean = false, val minFPS: Int = -1, val maxFPS: Int = -1, val photoFormats: List<CameraData> = emptyList(), val videoFormats: List<CameraData> = emptyList())

A class containing detailed information about the device's camera capabilities.

This class provides read-only access to various camera features such as zoom limits, exposure ranges, flash and torch support, focus capabilities, and supported formats for both photos and videos. It is used to query the camera's hardware specifications and current availability status.

Fields are emitted through CameraInfo state as a single immutable model.

Constructors

Link copied to clipboard
constructor(isZoomSupported: Boolean = false, isExposureSupported: Boolean = false, minZoom: Float = 1.0f, maxZoom: Float = 1.0f, minExposure: Float = 0.0f, maxExposure: Float = 0.0f, isFlashSupported: Boolean = false, isFlashAvailable: Boolean = false, isTorchSupported: Boolean = false, isTorchAvailable: Boolean = false, isZeroShutterLagSupported: Boolean = false, isVideoStabilizationSupported: Boolean = false, isFocusSupported: Boolean = false, minFPS: Int = -1, maxFPS: Int = -1, photoFormats: List<CameraData> = emptyList(), videoFormats: List<CameraData> = emptyList())

Properties

Link copied to clipboard

Indicates whether exposure compensation is supported.

Link copied to clipboard

Indicates whether flash is currently available.

Link copied to clipboard

Indicates whether the camera has flash hardware.

Link copied to clipboard

Indicates whether focus operations are supported.

Link copied to clipboard

Indicates whether torch mode is currently available.

Link copied to clipboard

Indicates whether torch mode is supported.

Link copied to clipboard

Indicates whether video stabilization is supported.

Link copied to clipboard

Indicates whether Zero Shutter Lag is supported.

Link copied to clipboard

Indicates whether Zoom is supported.

Link copied to clipboard

Maximum supported exposure compensation.

Link copied to clipboard
val maxFPS: Int

Maximum supported frame rate.

Link copied to clipboard

Maximum supported zoom ratio.

Link copied to clipboard

Minimum supported exposure compensation.

Link copied to clipboard
val minFPS: Int

Minimum supported frame rate.

Link copied to clipboard

Minimum supported zoom ratio.

Link copied to clipboard

Supported photo formats for the current camera.

Link copied to clipboard

Supported video formats for the current camera.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String