Class TextPatternScannerScreenConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class TextPatternScannerScreenConfiguration implements Parcelable
Configuration of the screen for detecting generic text data.
-
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description final StringgetVersion()Version number of the configuration object. final StringgetScreen()The configuration object should be applied for this screen. final TextPatternScannerScreenTextLocalizationgetLocalization()Configuration of the all strings for generic text scanner screen. final UnitsetLocalization(TextPatternScannerScreenTextLocalization localization)Configuration of the all strings for generic text scanner screen. final PalettegetPalette()Define the screen's base color values from which other colors are derived. final UnitsetPalette(Palette palette)Define the screen's base color values from which other colors are derived. final ScanbotColorgetBackgroundColor()The background color of the generic text scanner screen. final UnitsetBackgroundColor(ScanbotColor backgroundColor)The background color of the generic text scanner screen. final CameraConfigurationgetCameraConfiguration()Configuration of the camera behavior. final UnitsetCameraConfiguration(CameraConfiguration cameraConfiguration)Configuration of the camera behavior. final CameraPermissionScreengetCameraPermission()Configuration of the dialog for requesting camera permissions. final UnitsetCameraPermission(CameraPermissionScreen cameraPermission)Configuration of the dialog for requesting camera permissions. final UserGuidanceConfigurationgetTopUserGuidance()Configuration of the top user guidance. final UnitsetTopUserGuidance(UserGuidanceConfiguration topUserGuidance)Configuration of the top user guidance. final UserGuidanceConfigurationgetFinderViewUserGuidance()Configuration of the user guidance below finder view. final UnitsetFinderViewUserGuidance(UserGuidanceConfiguration finderViewUserGuidance)Configuration of the user guidance below finder view. final TopBarConfigurationgetTopBar()Configuration of the top bar on the generic text scanner screen. final UnitsetTopBar(TopBarConfiguration topBar)Configuration of the top bar on the generic text scanner screen. final IconButtongetTopBarOpenIntroScreenButton()Configuration of the button in the top bar that opens the introduction screen. final UnitsetTopBarOpenIntroScreenButton(IconButton topBarOpenIntroScreenButton)Configuration of the button in the top bar that opens the introduction screen. final TextPatternScannerIntroScreenConfigurationgetIntroScreen()Configuration of the introduction screen for the generic text scanner screen. final UnitsetIntroScreen(TextPatternScannerIntroScreenConfiguration introScreen)Configuration of the introduction screen for the generic text scanner screen. final ActionBarConfigurationgetActionBar()Configuration of the action bar. final UnitsetActionBar(ActionBarConfiguration actionBar)Configuration of the action bar. final PermanentViewFinderConfigurationgetViewFinder()Configuration of the view finder. final UnitsetViewFinder(PermanentViewFinderConfiguration viewFinder)Configuration of the view finder. final TextPatternScannerConfigurationgetScannerConfiguration()Configuration of the scanner. final UnitsetScannerConfiguration(TextPatternScannerConfiguration scannerConfiguration)Configuration of the scanner. final BooleangetShouldShowWordBoxes()Whether word boxes should be displayed or not. final UnitsetShouldShowWordBoxes(Boolean shouldShowWordBoxes)Whether word boxes should be displayed or not. final ScanbotColorgetWordBoxesFillColor()The color of word boxes filling. final UnitsetWordBoxesFillColor(ScanbotColor wordBoxesFillColor)The color of word boxes filling. final ScanbotColorgetWordBoxesLineColor()The color of word boxes border lines. final UnitsetWordBoxesLineColor(ScanbotColor wordBoxesLineColor)The color of word boxes border lines. final BooleangetConfirmationAlertDialogEnabled()If the confirmation alert dialog is enabled. final UnitsetConfirmationAlertDialogEnabled(Boolean confirmationAlertDialogEnabled)If the confirmation alert dialog is enabled. final ScanbotAlertDialoggetConfirmationAlertDialog()Configuration of the confirmation alert dialog. final UnitsetConfirmationAlertDialog(ScanbotAlertDialog confirmationAlertDialog)Configuration of the confirmation alert dialog. final ScanCompletionOverlaygetSuccessOverlay()Configuration of the result overlay. final UnitsetSuccessOverlay(ScanCompletionOverlay successOverlay)Configuration of the result overlay. final SoundgetSound()Configuration of the scan confirmation sound. final UnitsetSound(Sound sound)Configuration of the scan confirmation sound. final VibrationgetVibration()Configuration of the vibration feedback. final UnitsetVibration(Vibration vibration)Configuration of the vibration feedback. final BooleangetKeepScreenOn()If enabled, the screen will not turn off while the barcode scanner is active. final UnitsetKeepScreenOn(Boolean keepScreenOn)If enabled, the screen will not turn off while the barcode scanner is active. final JSONObjecttoJson(ToJsonConfiguration config)final TextPatternScannerScreenConfigurationclone()final static TextPatternScannerScreenConfigurationdefault()-
-
Constructor Detail
-
TextPatternScannerScreenConfiguration
TextPatternScannerScreenConfiguration(Map<String, Object> source)
-
TextPatternScannerScreenConfiguration
TextPatternScannerScreenConfiguration(JSONObject json)
-
TextPatternScannerScreenConfiguration
TextPatternScannerScreenConfiguration(String version, String screen, TextPatternScannerScreenTextLocalization localization, Palette palette, ScanbotColor backgroundColor, CameraConfiguration cameraConfiguration, CameraPermissionScreen cameraPermission, UserGuidanceConfiguration topUserGuidance, UserGuidanceConfiguration finderViewUserGuidance, TopBarConfiguration topBar, IconButton topBarOpenIntroScreenButton, TextPatternScannerIntroScreenConfiguration introScreen, ActionBarConfiguration actionBar, PermanentViewFinderConfiguration viewFinder, TextPatternScannerConfiguration scannerConfiguration, Boolean shouldShowWordBoxes, ScanbotColor wordBoxesFillColor, ScanbotColor wordBoxesLineColor, Boolean confirmationAlertDialogEnabled, ScanbotAlertDialog confirmationAlertDialog, ScanCompletionOverlay successOverlay, Sound sound, Vibration vibration, Boolean keepScreenOn)
-
-
Method Detail
-
getVersion
final String getVersion()
Version number of the configuration object.
Default is "1.0"
-
getScreen
final String getScreen()
The configuration object should be applied for this screen.
Default is "TextPatternScanner"
-
getLocalization
final TextPatternScannerScreenTextLocalization getLocalization()
Configuration of the all strings for generic text scanner screen.
-
setLocalization
final Unit setLocalization(TextPatternScannerScreenTextLocalization localization)
Configuration of the all strings for generic text scanner screen.
-
getPalette
final Palette getPalette()
Define the screen's base color values from which other colors are derived.
-
setPalette
final Unit setPalette(Palette palette)
Define the screen's base color values from which other colors are derived.
-
getBackgroundColor
final ScanbotColor getBackgroundColor()
The background color of the generic text scanner screen.
Default is "?sbColorSurfaceLow"
-
setBackgroundColor
final Unit setBackgroundColor(ScanbotColor backgroundColor)
The background color of the generic text scanner screen.
Default is "?sbColorSurfaceLow"
-
getCameraConfiguration
final CameraConfiguration getCameraConfiguration()
Configuration of the camera behavior.
-
setCameraConfiguration
final Unit setCameraConfiguration(CameraConfiguration cameraConfiguration)
Configuration of the camera behavior.
-
getCameraPermission
final CameraPermissionScreen getCameraPermission()
Configuration of the dialog for requesting camera permissions.
-
setCameraPermission
final Unit setCameraPermission(CameraPermissionScreen cameraPermission)
Configuration of the dialog for requesting camera permissions.
-
getTopUserGuidance
final UserGuidanceConfiguration getTopUserGuidance()
Configuration of the top user guidance.
-
setTopUserGuidance
final Unit setTopUserGuidance(UserGuidanceConfiguration topUserGuidance)
Configuration of the top user guidance.
-
getFinderViewUserGuidance
final UserGuidanceConfiguration getFinderViewUserGuidance()
Configuration of the user guidance below finder view.
-
setFinderViewUserGuidance
final Unit setFinderViewUserGuidance(UserGuidanceConfiguration finderViewUserGuidance)
Configuration of the user guidance below finder view.
-
getTopBar
final TopBarConfiguration getTopBar()
Configuration of the top bar on the generic text scanner screen.
-
setTopBar
final Unit setTopBar(TopBarConfiguration topBar)
Configuration of the top bar on the generic text scanner screen.
-
getTopBarOpenIntroScreenButton
final IconButton getTopBarOpenIntroScreenButton()
Configuration of the button in the top bar that opens the introduction screen.
-
setTopBarOpenIntroScreenButton
final Unit setTopBarOpenIntroScreenButton(IconButton topBarOpenIntroScreenButton)
Configuration of the button in the top bar that opens the introduction screen.
-
getIntroScreen
final TextPatternScannerIntroScreenConfiguration getIntroScreen()
Configuration of the introduction screen for the generic text scanner screen.
-
setIntroScreen
final Unit setIntroScreen(TextPatternScannerIntroScreenConfiguration introScreen)
Configuration of the introduction screen for the generic text scanner screen.
-
getActionBar
final ActionBarConfiguration getActionBar()
Configuration of the action bar.
-
setActionBar
final Unit setActionBar(ActionBarConfiguration actionBar)
Configuration of the action bar.
-
getViewFinder
final PermanentViewFinderConfiguration getViewFinder()
Configuration of the view finder.
-
setViewFinder
final Unit setViewFinder(PermanentViewFinderConfiguration viewFinder)
Configuration of the view finder.
-
getScannerConfiguration
final TextPatternScannerConfiguration getScannerConfiguration()
Configuration of the scanner.
-
setScannerConfiguration
final Unit setScannerConfiguration(TextPatternScannerConfiguration scannerConfiguration)
Configuration of the scanner.
-
getShouldShowWordBoxes
final Boolean getShouldShowWordBoxes()
Whether word boxes should be displayed or not.
Default is true
-
setShouldShowWordBoxes
final Unit setShouldShowWordBoxes(Boolean shouldShowWordBoxes)
Whether word boxes should be displayed or not.
Default is true
-
getWordBoxesFillColor
final ScanbotColor getWordBoxesFillColor()
The color of word boxes filling. Works best with an alpha < 0.5.
Default is "#33CCE54C"
-
setWordBoxesFillColor
final Unit setWordBoxesFillColor(ScanbotColor wordBoxesFillColor)
The color of word boxes filling. Works best with an alpha < 0.5.
Default is "#33CCE54C"
-
getWordBoxesLineColor
final ScanbotColor getWordBoxesLineColor()
The color of word boxes border lines.
Default is "#33CCE599"
-
setWordBoxesLineColor
final Unit setWordBoxesLineColor(ScanbotColor wordBoxesLineColor)
The color of word boxes border lines.
Default is "#33CCE599"
-
getConfirmationAlertDialogEnabled
final Boolean getConfirmationAlertDialogEnabled()
If the confirmation alert dialog is enabled.
Default is false
-
setConfirmationAlertDialogEnabled
final Unit setConfirmationAlertDialogEnabled(Boolean confirmationAlertDialogEnabled)
If the confirmation alert dialog is enabled.
Default is false
-
getConfirmationAlertDialog
final ScanbotAlertDialog getConfirmationAlertDialog()
Configuration of the confirmation alert dialog.
-
setConfirmationAlertDialog
final Unit setConfirmationAlertDialog(ScanbotAlertDialog confirmationAlertDialog)
Configuration of the confirmation alert dialog.
-
getSuccessOverlay
final ScanCompletionOverlay getSuccessOverlay()
Configuration of the result overlay.
-
setSuccessOverlay
final Unit setSuccessOverlay(ScanCompletionOverlay successOverlay)
Configuration of the result overlay.
-
getVibration
final Vibration getVibration()
Configuration of the vibration feedback.
-
setVibration
final Unit setVibration(Vibration vibration)
Configuration of the vibration feedback.
-
getKeepScreenOn
final Boolean getKeepScreenOn()
If enabled, the screen will not turn off while the barcode scanner is active. (Android only).
Default is true
-
setKeepScreenOn
final Unit setKeepScreenOn(Boolean keepScreenOn)
If enabled, the screen will not turn off while the barcode scanner is active. (Android only).
Default is true
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final TextPatternScannerScreenConfiguration clone()
-
default
final static TextPatternScannerScreenConfiguration default()
-
-
-
-