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.BarcodeHighlightDelegate
highlightDelegate
private final <Error class: unknown class><List<BarcodeItem>>
barcodes
-
Constructor Summary
Constructors Constructor Description BatchBarcodeListViewModel(FormattedBarcodeDataMapper dataMapper, BarcodeScanningSession barcodeScanningSession, IDispatchersProvider dispatchersProvider)
-
Method Summary
Modifier and Type Method Description BarcodePolygonsView.BarcodeHighlightDelegate
getHighlightDelegate()
Set this delegate to the barcode selection overlay <Error class: unknown class><List<BarcodeItem>>
getBarcodes()
Unit
submitButtonClick()
User wants to finish the flow. Unit
deleteScannedBarcode(BarcodeItem barcodeItem)
User wants to delete scanned item. Unit
clearClick()
User wants to clear the list of items. Unit
detailsOpened()
User opened the details screen. Unit
detailsClosed()
User closed the details screen. Unit
onFinishCurrentState()
Triggered when the signal to finish was received from outside. Unit
onBarcodeSelected(List<BarcodeItem> selected, Boolean automaticSelection)
When user clicked on a specific barcode on the Barcode selection overlay Unit
setBarcodeFilter(IBarcodeFilter barcodeFilter)
Set the instance of IBarcodeFilter
implementation to filter accepted scanned barcodesUnit
setSelectionLayerEnabled(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()
-
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
IBarcodeFilter
implementation to filter accepted scanned barcodes
-
setSelectionLayerEnabled
Unit setSelectionLayerEnabled(Boolean enabled)
Enables or disables barcode selection overlay layer
-
-
-
-