Class SingleScanningUseCaseViewModel
-
- All Implemented Interfaces:
public final class SingleScanningUseCaseViewModel extends BaseBarcodeViewModel
-
-
Field Summary
Fields Modifier and Type Field Description private final BarcodeDetectorFrameHandler
frameHandler
private final <Error class: unknown class><Boolean>
showDialog
private final BarcodeScannerConfiguration
configuration
-
Constructor Summary
Constructors Constructor Description SingleScanningUseCaseViewModel(BarcodeScannerConfiguration configuration, BarcodeNativeConfiguration nativeConfiguration, ScanbotBarcodeDetector detector, CoroutineContext dispatcher, Boolean flashAvailable, SoundController beeper)
-
Method Summary
Modifier and Type Method Description BarcodeDetectorFrameHandler
getFrameHandler()
final <Error class: unknown class><Boolean>
getShowDialog()
BarcodeScannerConfiguration
getConfiguration()
Boolean
shouldHighlight(BarcodeItem barcodeItem)
final Unit
onRetryErrorDialogClicked()
final Unit
onDiscardResultClick()
final Unit
onCancelErrorDialogClick()
final Unit
onSubmitResultClick()
Unit
onArBarcodeItemClick(BarcodeItem barcodeItem)
-
-
Constructor Detail
-
SingleScanningUseCaseViewModel
SingleScanningUseCaseViewModel(BarcodeScannerConfiguration configuration, BarcodeNativeConfiguration nativeConfiguration, ScanbotBarcodeDetector detector, CoroutineContext dispatcher, Boolean flashAvailable, SoundController beeper)
-
-
Method Detail
-
getFrameHandler
BarcodeDetectorFrameHandler getFrameHandler()
-
getShowDialog
final <Error class: unknown class><Boolean> getShowDialog()
-
getConfiguration
BarcodeScannerConfiguration getConfiguration()
-
shouldHighlight
Boolean shouldHighlight(BarcodeItem barcodeItem)
-
onRetryErrorDialogClicked
final Unit onRetryErrorDialogClicked()
-
onDiscardResultClick
final Unit onDiscardResultClick()
-
onCancelErrorDialogClick
final Unit onCancelErrorDialogClick()
-
onSubmitResultClick
final Unit onSubmitResultClick()
-
onArBarcodeItemClick
Unit onArBarcodeItemClick(BarcodeItem barcodeItem)
-
-
-
-