Class BatchBarcodeListView
-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback,android.view.KeyEvent.Callback,android.view.ViewManager,android.view.ViewParent,android.view.accessibility.AccessibilityEventSource,io.scanbot.sdk.ui.view.barcode.batch.IBatchBarcodeListView
public final class BatchBarcodeListView extends FrameLayout implements IBatchBarcodeListView
Represents a list of scanned barcodes
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBatchBarcodeListView.BarcodeItemVerticalAdapterpublic final classBatchBarcodeListView.BarcodeItemViewHolderView holder representing a barcode item
public classBatchBarcodeListView.SwipeableViewHolderRepresents a view holder with a swipable part
-
Constructor Summary
Constructors Constructor Description BatchBarcodeListView(Context context, AttributeSet attrs)
-
Method Summary
Modifier and Type Method Description UnitattachViewModel(IBatchBarcodeListView.ViewModel viewModel)final UnitupdateState()final UnitsetBottomSheetBackgroundColor(Integer color)Sets a color of the bottom sheet final UnitsetBottomSheetPrimaryColor(Integer color)Sets primary color for most of text's and other UI elements of the bottom sheet final UnitsetItemsCountTextPlaceholder(String placeholder)Sets a placeholder for items count textview final UnitsetItemsCountTextColor(Integer color)Sets color for items count textview final UnitsetItemsLoadingText(String text)Sets loading text for item, which is being converted with a mapper final BooleanonBackPressed()Processing back press and collapsing bottom sheet if needed -
-
Constructor Detail
-
BatchBarcodeListView
BatchBarcodeListView(Context context, AttributeSet attrs)
-
-
Method Detail
-
attachViewModel
Unit attachViewModel(IBatchBarcodeListView.ViewModel viewModel)
- Parameters:
viewModel- which will receive callbacks on user interactions.
-
updateState
final Unit updateState()
-
setBottomSheetBackgroundColor
final Unit setBottomSheetBackgroundColor(Integer color)
Sets a color of the bottom sheet
-
setBottomSheetPrimaryColor
final Unit setBottomSheetPrimaryColor(Integer color)
Sets primary color for most of text's and other UI elements of the bottom sheet
-
setItemsCountTextPlaceholder
final Unit setItemsCountTextPlaceholder(String placeholder)
Sets a placeholder for items count textview
-
setItemsCountTextColor
final Unit setItemsCountTextColor(Integer color)
Sets color for items count textview
-
setItemsLoadingText
final Unit setItemsLoadingText(String text)
Sets loading text for item, which is being converted with a mapper
-
onBackPressed
final Boolean onBackPressed()
Processing back press and collapsing bottom sheet if needed
-
-
-
-