CameraState

A state holder for the Camera composition.

This class contains all the mutable properties that define the current configuration of the camera, such as the camera selector (front/back), capture mode (image/video), flash settings, zoom levels, exposure compensation, and feature toggles like pinch-to-zoom or focus-on-tap.

Properties

Link copied to clipboard
val camFormat: StateFlow<CamFormat>
Link copied to clipboard
val camSelector: StateFlow<CamSelector>
Link copied to clipboard
val captureMode: StateFlow<CaptureMode>
Link copied to clipboard
val exposureCompensation: StateFlow<Float>
Link copied to clipboard
val flashMode: StateFlow<FlashMode>
Link copied to clipboard
val frameRate: StateFlow<Int>
Link copied to clipboard
val imageAnalyzer: StateFlow<ImageAnalyzer?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val isTorchEnabled: StateFlow<Boolean>
Link copied to clipboard
val mirrorMode: StateFlow<MirrorMode>
Link copied to clipboard
Link copied to clipboard
val scaleType: StateFlow<ScaleType>
Link copied to clipboard
Link copied to clipboard
val zoomRatio: StateFlow<Float>

Functions

Link copied to clipboard
fun updateMirrorMode(mirrorMode: MirrorMode)