Class MultipleScanningUseCaseViewModel
-
- All Implemented Interfaces:
public final class MultipleScanningUseCaseViewModel extends BaseBarcodeViewModel
-
-
Field Summary
Fields Modifier and Type Field Description private final <Error class: unknown class><Boolean>
showErrorDialog
private final BarcodeDetectorFrameHandler
frameHandler
private final <Error class: unknown class><ManualEditDialogData>
countEditDialog
private final <Error class: unknown class><Boolean>
showCountEditDialog
private final <Error class: unknown class><List<BarcodeFormattedData>>
barcodes
private final <Error class: unknown class><Integer>
count
private final <Error class: unknown class>
isLoading
private final BarcodeScannerConfiguration
configuration
-
Constructor Summary
Constructors Constructor Description MultipleScanningUseCaseViewModel(BarcodeScannerConfiguration configuration, BarcodeNativeConfiguration nativeConfiguration, ScanbotBarcodeDetector detector, CoroutineContext dispatcher, Boolean flashAvailable, SoundController beeper)
-
Method Summary
Modifier and Type Method Description final <Error class: unknown class><Boolean>
getShowErrorDialog()
BarcodeDetectorFrameHandler
getFrameHandler()
final <Error class: unknown class><ManualEditDialogData>
getCountEditDialog()
final <Error class: unknown class><Boolean>
getShowCountEditDialog()
final <Error class: unknown class><List<BarcodeFormattedData>>
getBarcodes()
final <Error class: unknown class><Integer>
getCount()
final <Error class: unknown class>
isLoading()
BarcodeScannerConfiguration
getConfiguration()
Boolean
shouldHighlight(BarcodeItem barcodeItem)
Unit
onArBarcodeItemClick(BarcodeItem barcodeItem)
final Unit
onClearClick()
final Unit
onSubmitClick()
final Unit
onItemDelete(String uuid)
final Unit
onCounterMinus(String uuid)
final Unit
onCounterPlus(String uuid)
final Unit
onCounterManual(String uuid)
final Unit
onSetBarcodeCounter(String uuid, Integer count)
final Unit
onCancelBarcodeCounter()
final Unit
onCancelErrorDialogClick()
final Unit
onRetryErrorDialogClicked()
-
-
Constructor Detail
-
MultipleScanningUseCaseViewModel
MultipleScanningUseCaseViewModel(BarcodeScannerConfiguration configuration, BarcodeNativeConfiguration nativeConfiguration, ScanbotBarcodeDetector detector, CoroutineContext dispatcher, Boolean flashAvailable, SoundController beeper)
-
-
Method Detail
-
getShowErrorDialog
final <Error class: unknown class><Boolean> getShowErrorDialog()
-
getFrameHandler
BarcodeDetectorFrameHandler getFrameHandler()
-
getCountEditDialog
final <Error class: unknown class><ManualEditDialogData> getCountEditDialog()
-
getShowCountEditDialog
final <Error class: unknown class><Boolean> getShowCountEditDialog()
-
getBarcodes
final <Error class: unknown class><List<BarcodeFormattedData>> getBarcodes()
-
isLoading
final <Error class: unknown class> isLoading()
-
getConfiguration
BarcodeScannerConfiguration getConfiguration()
-
shouldHighlight
Boolean shouldHighlight(BarcodeItem barcodeItem)
-
onArBarcodeItemClick
Unit onArBarcodeItemClick(BarcodeItem barcodeItem)
-
onClearClick
final Unit onClearClick()
-
onSubmitClick
final Unit onSubmitClick()
-
onItemDelete
final Unit onItemDelete(String uuid)
-
onCounterMinus
final Unit onCounterMinus(String uuid)
-
onCounterPlus
final Unit onCounterPlus(String uuid)
-
onCounterManual
final Unit onCounterManual(String uuid)
-
onSetBarcodeCounter
final Unit onSetBarcodeCounter(String uuid, Integer count)
-
onCancelBarcodeCounter
final Unit onCancelBarcodeCounter()
-
onCancelErrorDialogClick
final Unit onCancelErrorDialogClick()
-
onRetryErrorDialogClicked
final Unit onRetryErrorDialogClicked()
-
-
-
-