ViewModel

interface ViewModel

Notified about user interactions.

Inheritors

Properties

Link copied to clipboard
abstract val barcodes: <Error class: unknown class><List<BarcodeItem>>
Link copied to clipboard

Set this delegate to the barcode selection overlay

Link copied to clipboard
abstract val mappedBarcodes: <Error class: unknown class><List<BarcodeMappedResult>>

Functions

Link copied to clipboard
abstract fun clearClick()

User wants to clear the list of items.

Link copied to clipboard
abstract fun deleteScannedBarcode(barcodeItem: BarcodeItem)

User wants to delete scanned item.

Link copied to clipboard
abstract fun detailsClosed()

User closed the details screen.

Link copied to clipboard
abstract fun detailsOpened()

User opened the details screen.

Link copied to clipboard
abstract fun onBarcodeSelected(selected: List<BarcodeItem>, automaticSelection: Boolean)

When user clicked on a specific barcode on the Barcode selection overlay

Link copied to clipboard
abstract fun onFinishCurrentState()

Triggered when the signal to finish was received from outside.

Link copied to clipboard
abstract fun setBarcodeFilter(barcodeFilter: IBarcodeFilter)

Set the instance of IBarcodeFilter implementation to filter accepted scanned barcodes

Link copied to clipboard
abstract fun setSelectionLayerEnabled(enabled: Boolean)

Enables or disables barcode selection overlay layer

Link copied to clipboard
abstract fun submitButtonClick()

User wants to finish the flow.