Class BarcodeInfoMapping
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class BarcodeInfoMapping implements Parcelable
Configuration of the barcode data mapping.
-
-
Field Summary
Fields Modifier and Type Field Description private BarcodeItemMapper
barcodeItemMapper
private ScanbotColor
sheetColor
private ScanbotColor
dividerColor
private ScanbotColor
modalOverlayColor
private StyledText
loadingMessage
private BarcodeItemErrorState
errorState
-
Constructor Summary
Constructors Constructor Description BarcodeInfoMapping(Map<String, Object> json)
BarcodeInfoMapping()
BarcodeInfoMapping(BarcodeItemMapper barcodeItemMapper, ScanbotColor sheetColor, ScanbotColor dividerColor, ScanbotColor modalOverlayColor, StyledText loadingMessage, BarcodeItemErrorState errorState)
-
Method Summary
Modifier and Type Method Description final BarcodeItemMapper
getBarcodeItemMapper()
Callback to map the barcode data to the data of the corresponding product. final Unit
setBarcodeItemMapper(BarcodeItemMapper barcodeItemMapper)
Callback to map the barcode data to the data of the corresponding product. final ScanbotColor
getSheetColor()
Background color of the barcode info dialog. final Unit
setSheetColor(ScanbotColor sheetColor)
Background color of the barcode info dialog. final ScanbotColor
getDividerColor()
Color of the divider and separator lines in the barcode info dialog. final Unit
setDividerColor(ScanbotColor dividerColor)
Color of the divider and separator lines in the barcode info dialog. final ScanbotColor
getModalOverlayColor()
Background color of the overlay surrounding the barcode mapping error dialog. final Unit
setModalOverlayColor(ScanbotColor modalOverlayColor)
Background color of the overlay surrounding the barcode mapping error dialog. final StyledText
getLoadingMessage()
Text being displayed while a barcode is being mapped. final Unit
setLoadingMessage(StyledText loadingMessage)
Text being displayed while a barcode is being mapped. final BarcodeItemErrorState
getErrorState()
Configuration of the error state displayed when processing a barcode fails. final Unit
setErrorState(BarcodeItemErrorState errorState)
Configuration of the error state displayed when processing a barcode fails. -
-
Constructor Detail
-
BarcodeInfoMapping
BarcodeInfoMapping()
-
BarcodeInfoMapping
BarcodeInfoMapping(BarcodeItemMapper barcodeItemMapper, ScanbotColor sheetColor, ScanbotColor dividerColor, ScanbotColor modalOverlayColor, StyledText loadingMessage, BarcodeItemErrorState errorState)
-
-
Method Detail
-
getBarcodeItemMapper
final BarcodeItemMapper getBarcodeItemMapper()
Callback to map the barcode data to the data of the corresponding product.
-
setBarcodeItemMapper
final Unit setBarcodeItemMapper(BarcodeItemMapper barcodeItemMapper)
Callback to map the barcode data to the data of the corresponding product.
-
getSheetColor
final ScanbotColor getSheetColor()
Background color of the barcode info dialog.
-
setSheetColor
final Unit setSheetColor(ScanbotColor sheetColor)
Background color of the barcode info dialog.
-
getDividerColor
final ScanbotColor getDividerColor()
Color of the divider and separator lines in the barcode info dialog.
-
setDividerColor
final Unit setDividerColor(ScanbotColor dividerColor)
Color of the divider and separator lines in the barcode info dialog.
-
getModalOverlayColor
final ScanbotColor getModalOverlayColor()
Background color of the overlay surrounding the barcode mapping error dialog.
-
setModalOverlayColor
final Unit setModalOverlayColor(ScanbotColor modalOverlayColor)
Background color of the overlay surrounding the barcode mapping error dialog.
-
getLoadingMessage
final StyledText getLoadingMessage()
Text being displayed while a barcode is being mapped.
-
setLoadingMessage
final Unit setLoadingMessage(StyledText loadingMessage)
Text being displayed while a barcode is being mapped.
-
getErrorState
final BarcodeItemErrorState getErrorState()
Configuration of the error state displayed when processing a barcode fails.
-
setErrorState
final Unit setErrorState(BarcodeItemErrorState errorState)
Configuration of the error state displayed when processing a barcode fails.
-
-
-
-