SimpleScanViewModel

class SimpleScanViewModel @Inject constructor(scannerPrefsRepository: ScannerPreferencesRepository, dispatchers: CoroutineDispatchers) : ViewModel

Constructors

Link copied to clipboard
@Inject
fun SimpleScanViewModel(scannerPrefsRepository: ScannerPreferencesRepository, dispatchers: CoroutineDispatchers)

Types

Link copied to clipboard
sealed class SideEffect

Functions

Link copied to clipboard
open fun addCloseable(@NonNull p0: Closeable)
Link copied to clipboard
fun barcodeDetected(barcode: String)
Link copied to clipboard
fun changeCameraAutoFocus()
Link copied to clipboard
fun changeCameraFlash()
Link copied to clipboard
fun changeCameraState()
Link copied to clipboard
fun troubleScanningPressed()

Properties

Link copied to clipboard
val scannerOptionsFlow: StateFlow<SimpleScanScannerOptions>
Link copied to clipboard
val sideEffectsFlow: SharedFlow<SimpleScanViewModel.SideEffect>