CameraUseCase

class CameraUseCase(cameraState: StateFlow<CameraState>, events: Events = BlinkRecognitionSdk.events, config: CameraSettings.() -> Unit = {}) : CameraProvider, Closeable

Google camera source

Constructors

Link copied to clipboard
constructor(cameraState: StateFlow<CameraState>, events: Events = BlinkRecognitionSdk.events, config: CameraSettings.() -> Unit = {})

Create empty Google camera source

Functions

Link copied to clipboard
open override fun capture(): MediaResultsFlow
Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun preview(): CameraFrameResultsFlow
Link copied to clipboard
open override fun takePicture(mediaOptions: MediaOptions)

Take photo

Link copied to clipboard
fun torch(enable: Boolean)

torch

Properties

Link copied to clipboard
@get:JvmName(name = "configuration")
val configuration: CameraSettings

Configuration