Class BaseBarcodeViewModel
-
- All Implemented Interfaces:
public abstract class BaseBarcodeViewModel extends ScanbotComposeCameraViewModel
-
-
Field Summary
Fields Modifier and Type Field Description public final static Long
mappingTimeout
private final BarcodeDetectorFrameHandler
frameHandler
private final BarcodeScannerConfiguration
configuration
private final <Error class: unknown class><Result<BarcodeScannerResult, ScanningError>>
resultFlow
private final <Error class: unknown class><FrameHandler.Frame>
frameSizeFlow
private final FrameHandler
screenSizeFrameHandler
private <Error class: unknown class>
beepJob
private final BarcodeNativeConfiguration
nativeConfiguration
-
Constructor Summary
Constructors Constructor Description BaseBarcodeViewModel(CameraConfiguration cameraConfiguration, BarcodeNativeConfiguration nativeConfiguration, CoroutineContext dispatcher, Boolean flashAvailable, SoundController beeper)
-
Method Summary
Modifier and Type Method Description abstract BarcodeDetectorFrameHandler
getFrameHandler()
abstract BarcodeScannerConfiguration
getConfiguration()
final <Error class: unknown class><Result<BarcodeScannerResult, ScanningError>>
getResultFlow()
final <Error class: unknown class><FrameHandler.Frame>
getFrameSizeFlow()
final FrameHandler
getScreenSizeFrameHandler()
final <Error class: unknown class>
getBeepJob()
final Unit
)>setBeepJob(<Error class: unknown class> beepJob)
final BarcodeNativeConfiguration
getNativeConfiguration()
final Unit
mapDataForBarcodeItem(BarcodeItem barcodeItem)
Unit
onRetryErrorClicked()
Boolean
shouldHighlight(BarcodeItem barcodeItem)
abstract Unit
onArBarcodeItemClick(BarcodeItem barcodeItem)
Unit
onCleared()
-
-
Constructor Detail
-
BaseBarcodeViewModel
BaseBarcodeViewModel(CameraConfiguration cameraConfiguration, BarcodeNativeConfiguration nativeConfiguration, CoroutineContext dispatcher, Boolean flashAvailable, SoundController beeper)
-
-
Method Detail
-
getFrameHandler
abstract BarcodeDetectorFrameHandler getFrameHandler()
-
getConfiguration
abstract BarcodeScannerConfiguration getConfiguration()
-
getResultFlow
final <Error class: unknown class><Result<BarcodeScannerResult, ScanningError>> getResultFlow()
-
getFrameSizeFlow
final <Error class: unknown class><FrameHandler.Frame> getFrameSizeFlow()
-
getScreenSizeFrameHandler
final FrameHandler getScreenSizeFrameHandler()
-
getBeepJob
final <Error class: unknown class> getBeepJob()
-
setBeepJob
final Unit )>setBeepJob(<Error class: unknown class> beepJob)
-
getNativeConfiguration
final BarcodeNativeConfiguration getNativeConfiguration()
-
mapDataForBarcodeItem
final Unit mapDataForBarcodeItem(BarcodeItem barcodeItem)
-
onRetryErrorClicked
Unit onRetryErrorClicked()
-
shouldHighlight
Boolean shouldHighlight(BarcodeItem barcodeItem)
-
onArBarcodeItemClick
abstract Unit onArBarcodeItemClick(BarcodeItem barcodeItem)
-
-
-
-