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 class
BatchBarcodeListView.BarcodeItemVerticalAdapter
public final class
BatchBarcodeListView.BarcodeItemViewHolder
View holder representing a barcode item
public class
BatchBarcodeListView.SwipeableViewHolder
Represents a view holder with a swipable part
-
Constructor Summary
Constructors Constructor Description BatchBarcodeListView(Context context, AttributeSet attrs)
-
Method Summary
Modifier and Type Method Description Unit
attachViewModel(IBatchBarcodeListView.ViewModel viewModel)
final Unit
updateState()
final Unit
setBottomSheetBackgroundColor(Integer color)
Sets a color of the bottom sheet final Unit
setBottomSheetPrimaryColor(Integer color)
Sets primary color for most of text's and other UI elements of the bottom sheet final Unit
setItemsCountTextPlaceholder(String placeholder)
Sets a placeholder for items count textview final Unit
setItemsCountTextColor(Integer color)
Sets color for items count textview final Unit
setItemsLoadingText(String text)
Sets loading text for item, which is being converted with a mapper final Boolean
onBackPressed()
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
-
-
-
-