CameraViewModel

abstract class CameraViewModel : ViewModel

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val _torchOn: MutableStateFlow<Boolean>

Updating this value will turn the torch on or off.

Link copied to clipboard
val torchOn: StateFlow<Boolean>

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
abstract fun analyzeImage(image: ImageProxy)

Analyzes an image to produce a result.

Link copied to clipboard