Class BatchBarcodeListViewModel
-
- All Implemented Interfaces:
-
io.scanbot.sdk.ui.utils.Router,io.scanbot.sdk.ui.view.barcode.batch.IBatchBarcodeListView.ViewModel
public final class BatchBarcodeListViewModel implements IBatchBarcodeListView.ViewModel, Router
ViewModel for BatchBarcodeListView.
-
-
Field Summary
Fields Modifier and Type Field Description private final BarcodePolygonsView.BarcodeHighlightDelegatehighlightDelegateprivate final <Error class: unknown class><List<BarcodeItem>>barcodesprivate final <Error class: unknown class><List<BarcodeMappedResult>>mappedBarcodes
-
Constructor Summary
Constructors Constructor Description BatchBarcodeListViewModel(FormattedBarcodeDataMapper dataMapper, BarcodeScanningSession barcodeScanningSession, IDispatchersProvider dispatchersProvider)
-
Method Summary
Modifier and Type Method Description BarcodePolygonsView.BarcodeHighlightDelegategetHighlightDelegate()Set this delegate to the barcode selection overlay <Error class: unknown class><List<BarcodeItem>>getBarcodes()<Error class: unknown class><List<BarcodeMappedResult>>getMappedBarcodes()UnitsubmitButtonClick()User wants to finish the flow. UnitdeleteScannedBarcode(BarcodeItem barcodeItem)User wants to delete scanned item. UnitclearClick()User wants to clear the list of items. UnitdetailsOpened()User opened the details screen. UnitdetailsClosed()User closed the details screen. UnitonFinishCurrentState()Triggered when the signal to finish was received from outside. UnitonBarcodeSelected(List<BarcodeItem> selected, Boolean automaticSelection)When user clicked on a specific barcode on the Barcode selection overlay UnitsetBarcodeFilter(IBarcodeFilter barcodeFilter)Set the instance of IBarcodeFilterimplementation to filter accepted scanned barcodesUnitsetSelectionLayerEnabled(Boolean enabled)Enables or disables barcode selection overlay layer -
-
Constructor Detail
-
BatchBarcodeListViewModel
BatchBarcodeListViewModel(FormattedBarcodeDataMapper dataMapper, BarcodeScanningSession barcodeScanningSession, IDispatchersProvider dispatchersProvider)
-
-
Method Detail
-
getHighlightDelegate
BarcodePolygonsView.BarcodeHighlightDelegate getHighlightDelegate()
Set this delegate to the barcode selection overlay
-
getBarcodes
<Error class: unknown class><List<BarcodeItem>> getBarcodes()
-
getMappedBarcodes
<Error class: unknown class><List<BarcodeMappedResult>> getMappedBarcodes()
-
submitButtonClick
Unit submitButtonClick()
User wants to finish the flow.
-
deleteScannedBarcode
Unit deleteScannedBarcode(BarcodeItem barcodeItem)
User wants to delete scanned item.
-
clearClick
Unit clearClick()
User wants to clear the list of items.
-
detailsOpened
Unit detailsOpened()
User opened the details screen.
-
detailsClosed
Unit detailsClosed()
User closed the details screen.
-
onFinishCurrentState
Unit onFinishCurrentState()
Triggered when the signal to finish was received from outside.
-
onBarcodeSelected
Unit onBarcodeSelected(List<BarcodeItem> selected, Boolean automaticSelection)
When user clicked on a specific barcode on the Barcode selection overlay
-
setBarcodeFilter
Unit setBarcodeFilter(IBarcodeFilter barcodeFilter)
Set the instance of
IBarcodeFilterimplementation to filter accepted scanned barcodes
-
setSelectionLayerEnabled
Unit setSelectionLayerEnabled(Boolean enabled)
Enables or disables barcode selection overlay layer
-
-
-
-