Class MrzScannerScreenConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class MrzScannerScreenConfiguration implements Parcelable
Configuration of the screen for detecting MRZ (Machine-readable zones) of various documents.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringversionprivate final Stringscreenprivate MrzScannerScreenTextLocalizationlocalizationprivate Palettepaletteprivate ScanbotColorbackgroundColorprivate CameraConfigurationcameraConfigurationprivate CameraPermissionScreencameraPermissionprivate UserGuidanceConfigurationtopUserGuidanceprivate UserGuidanceConfigurationfinderViewUserGuidanceprivate TopBarConfigurationtopBarprivate IconButtontopBarOpenIntroScreenButtonprivate MrzScannerIntroScreenConfigurationintroScreenprivate ActionBarConfigurationactionBarprivate PermanentViewFinderConfigurationviewFinderprivate MrzScannerConfigurationscannerConfigurationprivate MrzFinderLayoutPresetmrzExampleOverlayprivate ScanCompletionOverlaysuccessOverlayprivate Soundsoundprivate Vibrationvibrationprivate BooleankeepScreenOn
-
Constructor Summary
Constructors Constructor Description MrzScannerScreenConfiguration(Map<String, Object> source)MrzScannerScreenConfiguration(JSONObject json)MrzScannerScreenConfiguration(String version, String screen, MrzScannerScreenTextLocalization localization, Palette palette, ScanbotColor backgroundColor, CameraConfiguration cameraConfiguration, CameraPermissionScreen cameraPermission, UserGuidanceConfiguration topUserGuidance, UserGuidanceConfiguration finderViewUserGuidance, TopBarConfiguration topBar, IconButton topBarOpenIntroScreenButton, MrzScannerIntroScreenConfiguration introScreen, ActionBarConfiguration actionBar, PermanentViewFinderConfiguration viewFinder, MrzScannerConfiguration scannerConfiguration, MrzFinderLayoutPreset mrzExampleOverlay, ScanCompletionOverlay successOverlay, Sound sound, Vibration vibration, Boolean keepScreenOn)
-
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 MrzScannerScreenTextLocalizationgetLocalization()Configuration of the all strings for MRZ scanner screen. final UnitsetLocalization(MrzScannerScreenTextLocalization localization)Configuration of the all strings for MRZ 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 MRZ scanner screen. final UnitsetBackgroundColor(ScanbotColor backgroundColor)The background color of the MRZ 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 MRZ scanner screen. final UnitsetTopBar(TopBarConfiguration topBar)Configuration of the top bar on the MRZ 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 MrzScannerIntroScreenConfigurationgetIntroScreen()Configuration of the introduction screen for the MRZ scanner. final UnitsetIntroScreen(MrzScannerIntroScreenConfiguration introScreen)Configuration of the introduction screen for the MRZ scanner. 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 MrzScannerConfigurationgetScannerConfiguration()Configuration of the MRZ scanner. final UnitsetScannerConfiguration(MrzScannerConfiguration scannerConfiguration)Configuration of the MRZ scanner. final MrzFinderLayoutPresetgetMrzExampleOverlay()Configuration of the overlay text inside finder. final UnitsetMrzExampleOverlay(MrzFinderLayoutPreset mrzExampleOverlay)Configuration of the overlay text inside finder. final ScanCompletionOverlaygetSuccessOverlay()Configuration of the success overlay. final UnitsetSuccessOverlay(ScanCompletionOverlay successOverlay)Configuration of the success 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 MrzScannerScreenConfigurationclone()final static MrzScannerScreenConfigurationdefault()-
-
Constructor Detail
-
MrzScannerScreenConfiguration
MrzScannerScreenConfiguration(JSONObject json)
-
MrzScannerScreenConfiguration
MrzScannerScreenConfiguration(String version, String screen, MrzScannerScreenTextLocalization localization, Palette palette, ScanbotColor backgroundColor, CameraConfiguration cameraConfiguration, CameraPermissionScreen cameraPermission, UserGuidanceConfiguration topUserGuidance, UserGuidanceConfiguration finderViewUserGuidance, TopBarConfiguration topBar, IconButton topBarOpenIntroScreenButton, MrzScannerIntroScreenConfiguration introScreen, ActionBarConfiguration actionBar, PermanentViewFinderConfiguration viewFinder, MrzScannerConfiguration scannerConfiguration, MrzFinderLayoutPreset mrzExampleOverlay, 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 "MrzScanner"
-
getLocalization
final MrzScannerScreenTextLocalization getLocalization()
Configuration of the all strings for MRZ scanner screen.
-
setLocalization
final Unit setLocalization(MrzScannerScreenTextLocalization localization)
Configuration of the all strings for MRZ 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 MRZ scanner screen.
Default is "?sbColorSurfaceLow"
-
setBackgroundColor
final Unit setBackgroundColor(ScanbotColor backgroundColor)
The background color of the MRZ 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 MRZ scanner screen.
-
setTopBar
final Unit setTopBar(TopBarConfiguration topBar)
Configuration of the top bar on the MRZ 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 MrzScannerIntroScreenConfiguration getIntroScreen()
Configuration of the introduction screen for the MRZ scanner.
-
setIntroScreen
final Unit setIntroScreen(MrzScannerIntroScreenConfiguration introScreen)
Configuration of the introduction screen for the MRZ scanner.
-
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 MrzScannerConfiguration getScannerConfiguration()
Configuration of the MRZ scanner.
-
setScannerConfiguration
final Unit setScannerConfiguration(MrzScannerConfiguration scannerConfiguration)
Configuration of the MRZ scanner.
-
getMrzExampleOverlay
final MrzFinderLayoutPreset getMrzExampleOverlay()
Configuration of the overlay text inside finder.
-
setMrzExampleOverlay
final Unit setMrzExampleOverlay(MrzFinderLayoutPreset mrzExampleOverlay)
Configuration of the overlay text inside finder.
-
getSuccessOverlay
final ScanCompletionOverlay getSuccessOverlay()
Configuration of the success overlay.
-
setSuccessOverlay
final Unit setSuccessOverlay(ScanCompletionOverlay successOverlay)
Configuration of the success 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 MrzScannerScreenConfiguration clone()
-
default
final static MrzScannerScreenConfiguration default()
-
-
-
-