Class SingleScanningMode
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class SingleScanningMode extends BarcodeUseCase implements Parcelable
Configuration of the single barcode scanning mode.
-
-
Field Summary
Fields Modifier and Type Field Description private final String_typeprivate BooleanconfirmationSheetEnabledprivate BooleanbarcodeImageVisibleprivate ScanbotColorsheetColorprivate ScanbotColordividerColorprivate ScanbotColormodalOverlayColorprivate StyledTextbarcodeTitleprivate StyledTextbarcodeSubtitleprivate ButtonConfigurationsubmitButtonprivate ButtonConfigurationcancelButtonprivate BarcodeInfoMappingbarcodeInfoMappingprivate ArOverlayGeneralConfigurationarOverlay
-
Constructor Summary
Constructors Constructor Description SingleScanningMode(Map<String, Object> source)SingleScanningMode(JSONObject json)SingleScanningMode(Boolean confirmationSheetEnabled, Boolean barcodeImageVisible, ScanbotColor sheetColor, ScanbotColor dividerColor, ScanbotColor modalOverlayColor, StyledText barcodeTitle, StyledText barcodeSubtitle, ButtonConfiguration submitButton, ButtonConfiguration cancelButton, BarcodeInfoMapping barcodeInfoMapping, ArOverlayGeneralConfiguration arOverlay)
-
Method Summary
Modifier and Type Method Description Stringget_type()final BooleangetConfirmationSheetEnabled()If enabled, the confirmation sheet will be shown after the barcode has been scanned. final UnitsetConfirmationSheetEnabled(Boolean confirmationSheetEnabled)If enabled, the confirmation sheet will be shown after the barcode has been scanned. final BooleangetBarcodeImageVisible()If enabled, the barcode image will be shown on the confirmation sheet. final UnitsetBarcodeImageVisible(Boolean barcodeImageVisible)If enabled, the barcode image will be shown on the confirmation sheet. final ScanbotColorgetSheetColor()Color of the confirmation sheet's background. final UnitsetSheetColor(ScanbotColor sheetColor)Color of the confirmation sheet's background. final ScanbotColorgetDividerColor()Color of the divider and separator lines in the confirmation sheet. final UnitsetDividerColor(ScanbotColor dividerColor)Color of the divider and separator lines in the confirmation sheet. final ScanbotColorgetModalOverlayColor()Background color of the overlay surrounding the confirmation sheet. final UnitsetModalOverlayColor(ScanbotColor modalOverlayColor)Background color of the overlay surrounding the confirmation sheet. final StyledTextgetBarcodeTitle()Appearance of the barcode title (the barcode's value) on the confirmation sheet. final UnitsetBarcodeTitle(StyledText barcodeTitle)Appearance of the barcode title (the barcode's value) on the confirmation sheet. final StyledTextgetBarcodeSubtitle()Appearance of the barcode subtitle (the barcode's symbology) on the confirmation sheet. final UnitsetBarcodeSubtitle(StyledText barcodeSubtitle)Appearance of the barcode subtitle (the barcode's symbology) on the confirmation sheet. final ButtonConfigurationgetSubmitButton()Appearance of the confirm button on the confirmation sheet. final UnitsetSubmitButton(ButtonConfiguration submitButton)Appearance of the confirm button on the confirmation sheet. final ButtonConfigurationgetCancelButton()Appearance of the cancel button on the confirmation sheet. final UnitsetCancelButton(ButtonConfiguration cancelButton)Appearance of the cancel button on the confirmation sheet. final BarcodeInfoMappinggetBarcodeInfoMapping()Appearance of the barcode info mapping. final UnitsetBarcodeInfoMapping(BarcodeInfoMapping barcodeInfoMapping)Appearance of the barcode info mapping. final ArOverlayGeneralConfigurationgetArOverlay()Configuration of the AR overlay. final UnitsetArOverlay(ArOverlayGeneralConfiguration arOverlay)Configuration of the AR overlay. JSONObjecttoJson(ToJsonConfiguration config)SingleScanningModeclone()final static SingleScanningModedefault()-
-
Constructor Detail
-
SingleScanningMode
SingleScanningMode(JSONObject json)
-
SingleScanningMode
SingleScanningMode(Boolean confirmationSheetEnabled, Boolean barcodeImageVisible, ScanbotColor sheetColor, ScanbotColor dividerColor, ScanbotColor modalOverlayColor, StyledText barcodeTitle, StyledText barcodeSubtitle, ButtonConfiguration submitButton, ButtonConfiguration cancelButton, BarcodeInfoMapping barcodeInfoMapping, ArOverlayGeneralConfiguration arOverlay)
-
-
Method Detail
-
getConfirmationSheetEnabled
final Boolean getConfirmationSheetEnabled()
If enabled, the confirmation sheet will be shown after the barcode has been scanned.
Default is false
-
setConfirmationSheetEnabled
final Unit setConfirmationSheetEnabled(Boolean confirmationSheetEnabled)
If enabled, the confirmation sheet will be shown after the barcode has been scanned.
Default is false
-
getBarcodeImageVisible
final Boolean getBarcodeImageVisible()
If enabled, the barcode image will be shown on the confirmation sheet.
Default is true
-
setBarcodeImageVisible
final Unit setBarcodeImageVisible(Boolean barcodeImageVisible)
If enabled, the barcode image will be shown on the confirmation sheet.
Default is true
-
getSheetColor
final ScanbotColor getSheetColor()
Color of the confirmation sheet's background.
Default is "?sbColorSurface"
-
setSheetColor
final Unit setSheetColor(ScanbotColor sheetColor)
Color of the confirmation sheet's background.
Default is "?sbColorSurface"
-
getDividerColor
final ScanbotColor getDividerColor()
Color of the divider and separator lines in the confirmation sheet.
Default is "?sbColorOutline"
-
setDividerColor
final Unit setDividerColor(ScanbotColor dividerColor)
Color of the divider and separator lines in the confirmation sheet.
Default is "?sbColorOutline"
-
getModalOverlayColor
final ScanbotColor getModalOverlayColor()
Background color of the overlay surrounding the confirmation sheet.
Default is "?sbColorModalOverlay"
-
setModalOverlayColor
final Unit setModalOverlayColor(ScanbotColor modalOverlayColor)
Background color of the overlay surrounding the confirmation sheet.
Default is "?sbColorModalOverlay"
-
getBarcodeTitle
final StyledText getBarcodeTitle()
Appearance of the barcode title (the barcode's value) on the confirmation sheet.
-
setBarcodeTitle
final Unit setBarcodeTitle(StyledText barcodeTitle)
Appearance of the barcode title (the barcode's value) on the confirmation sheet.
-
getBarcodeSubtitle
final StyledText getBarcodeSubtitle()
Appearance of the barcode subtitle (the barcode's symbology) on the confirmation sheet.
-
setBarcodeSubtitle
final Unit setBarcodeSubtitle(StyledText barcodeSubtitle)
Appearance of the barcode subtitle (the barcode's symbology) on the confirmation sheet.
-
getSubmitButton
final ButtonConfiguration getSubmitButton()
Appearance of the confirm button on the confirmation sheet.
-
setSubmitButton
final Unit setSubmitButton(ButtonConfiguration submitButton)
Appearance of the confirm button on the confirmation sheet.
-
getCancelButton
final ButtonConfiguration getCancelButton()
Appearance of the cancel button on the confirmation sheet.
-
setCancelButton
final Unit setCancelButton(ButtonConfiguration cancelButton)
Appearance of the cancel button on the confirmation sheet.
-
getBarcodeInfoMapping
final BarcodeInfoMapping getBarcodeInfoMapping()
Appearance of the barcode info mapping.
-
setBarcodeInfoMapping
final Unit setBarcodeInfoMapping(BarcodeInfoMapping barcodeInfoMapping)
Appearance of the barcode info mapping.
-
getArOverlay
final ArOverlayGeneralConfiguration getArOverlay()
Configuration of the AR overlay.
-
setArOverlay
final Unit setArOverlay(ArOverlayGeneralConfiguration arOverlay)
Configuration of the AR overlay.
-
toJson
JSONObject toJson(ToJsonConfiguration config)
-
clone
SingleScanningMode clone()
-
default
final static SingleScanningMode default()
-
-
-
-