Package-level declarations

Types

Link copied to clipboard
class CameraState(context: Context)

A state object that can be hoisted to control camera, take picture or record video.

Link copied to clipboard

Camera Selector.

Link copied to clipboard

Camera Capture mode.

Link copied to clipboard

Camera Flash mode.

Link copied to clipboard

Image analysis backpressure strategy is used to camera operation mode.

Link copied to clipboard
class ImageAnalyzer(cameraState: CameraState, imageAnalysisBackpressureStrategy: ImageAnalysisBackpressureStrategy, imageAnalysisTargetSize: ImageTargetSize?, imageAnalysisImageQueueDepth: Int, analyzer: ImageAnalysis.Analyzer)

Intermediate Image analyzer from cameraX

Link copied to clipboard

Camera Image Capture mode.

Link copied to clipboard
sealed interface ImageCaptureResult

Photo Result of taking picture.

Link copied to clipboard
data class ImageTargetSize(aspectRatio: Int? = null, size: Size? = null, outputSize: CameraController.OutputSize? = null)

Image Analysis target size is used to target the size of image analysis, accepting AspectRatio or Size.

Link copied to clipboard

Camera implementation mode.

Link copied to clipboard

Camera scale type.

Link copied to clipboard
sealed interface VideoCaptureResult

Video Result of recording video.

Functions

Link copied to clipboard

Camera State from CameraPreview Composable.

Link copied to clipboard

Camera selector's State to CameraPreview Composable.

Link copied to clipboard
fun CameraState.rememberFlashMode(initialFlashMode: FlashMode = FlashMode.Off, useSaver: Boolean = true): MutableState<FlashMode>

Flash mode's State to CameraPreview Composable.

Link copied to clipboard
fun CameraState.rememberImageAnalyzer(imageAnalysisBackpressureStrategy: ImageAnalysisBackpressureStrategy = ImageAnalysisBackpressureStrategy.KeepOnlyLatest, imageAnalysisTargetSize: ImageTargetSize? = ImageTargetSize(this.imageAnalysisTargetSize), imageAnalysisImageQueueDepth: Int = this.imageAnalysisImageQueueDepth, analyze: ImageAnalysis.Analyzer): ImageAnalyzer

Create instance remember of ImageAnalyzer.

Link copied to clipboard
fun CameraState.rememberTorch(initialTorch: Boolean = false, useSaver: Boolean = true): MutableState<Boolean>

Torch's State to CameraPreview Composable.