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 BarcodeItemMapperbarcodeItemMapperprivate ScanbotColorsheetColorprivate ScanbotColordividerColorprivate ScanbotColormodalOverlayColorprivate StyledTextloadingMessageprivate BarcodeItemErrorStateerrorState
-
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 BarcodeItemMappergetBarcodeItemMapper()Callback to map the barcode data to the data of the corresponding product. final UnitsetBarcodeItemMapper(BarcodeItemMapper barcodeItemMapper)Callback to map the barcode data to the data of the corresponding product. final ScanbotColorgetSheetColor()Background color of the barcode info dialog. final UnitsetSheetColor(ScanbotColor sheetColor)Background color of the barcode info dialog. final ScanbotColorgetDividerColor()Color of the divider and separator lines in the barcode info dialog. final UnitsetDividerColor(ScanbotColor dividerColor)Color of the divider and separator lines in the barcode info dialog. final ScanbotColorgetModalOverlayColor()Background color of the overlay surrounding the barcode mapping error dialog. final UnitsetModalOverlayColor(ScanbotColor modalOverlayColor)Background color of the overlay surrounding the barcode mapping error dialog. final StyledTextgetLoadingMessage()Text being displayed while a barcode is being mapped. final UnitsetLoadingMessage(StyledText loadingMessage)Text being displayed while a barcode is being mapped. final BarcodeItemErrorStategetErrorState()Configuration of the error state displayed when processing a barcode fails. final UnitsetErrorState(BarcodeItemErrorState errorState)Configuration of the error state displayed when processing a barcode fails. final JSONObjecttoJson(ToJsonConfiguration config)final BarcodeInfoMappingclone()final static BarcodeInfoMappingdefault()-
-
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(ToJsonConfiguration config)
-
clone
final BarcodeInfoMapping clone()
-
default
final static BarcodeInfoMapping default()
-
-
-
-