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> source)
BarcodeInfoMapping(JSONObject json)
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. final JSONObject
toJson()
final static BarcodeInfoMapping
default()
-
-
Constructor Detail
-
BarcodeInfoMapping
BarcodeInfoMapping(JSONObject json)
-
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. Default is "?sbColorSurface"
-
setSheetColor
final Unit setSheetColor(ScanbotColor sheetColor)
Background color of the barcode info dialog. Default is "?sbColorSurface"
-
getDividerColor
final ScanbotColor getDividerColor()
Color of the divider and separator lines in the barcode info dialog. Default is "?sbColorOutline"
-
setDividerColor
final Unit setDividerColor(ScanbotColor dividerColor)
Color of the divider and separator lines in the barcode info dialog. Default is "?sbColorOutline"
-
getModalOverlayColor
final ScanbotColor getModalOverlayColor()
Background color of the overlay surrounding the barcode mapping error dialog. Default is "?sbColorModalOverlay"
-
setModalOverlayColor
final Unit setModalOverlayColor(ScanbotColor modalOverlayColor)
Background color of the overlay surrounding the barcode mapping error dialog. Default is "?sbColorModalOverlay"
-
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.
-
toJson
final JSONObject toJson()
-
default
final static BarcodeInfoMapping default()
-
-
-
-