Class CreditCardScannerScreenConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class CreditCardScannerScreenConfiguration implements Parcelable
Configuration of the screen for detecting credit card 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 CreditCardScannerScreenTextLocalizationgetLocalization()Configuration of the all strings for credit card scanner screen. final UnitsetLocalization(CreditCardScannerScreenTextLocalization localization)Configuration of the all strings for credit card 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 credit card scanner screen. final UnitsetBackgroundColor(ScanbotColor backgroundColor)The background color of the credit card 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 CreditCardScanGuidanceConfigurationgetScanStatusUserGuidance()Configuration of the user guidance for the scanning status. final UnitsetScanStatusUserGuidance(CreditCardScanGuidanceConfiguration scanStatusUserGuidance)Configuration of the user guidance for the scanning status. final TopBarConfigurationgetTopBar()Configuration of the top bar on the credit card scanner screen. final UnitsetTopBar(TopBarConfiguration topBar)Configuration of the top bar on the credit card 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 CreditCardScannerIntroScreenConfigurationgetIntroScreen()Configuration of the introduction screen for the credit card scanner. final UnitsetIntroScreen(CreditCardScannerIntroScreenConfiguration introScreen)Configuration of the introduction screen for the credit card 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 CreditCardScannerConfigurationgetScannerConfiguration()Configuration for the credit card recognizer. final UnitsetScannerConfiguration(CreditCardScannerConfiguration scannerConfiguration)Configuration for the credit card recognizer. final BooleangetExampleOverlayVisible()Flag to show or hide the preset button. final UnitsetExampleOverlayVisible(Boolean exampleOverlayVisible)Flag to show or hide the preset button. final CreditCardScanningProgressConfigurationgetScanningProgress()Configuration of visualization of the scanning progress. final UnitsetScanningProgress(CreditCardScanningProgressConfiguration scanningProgress)Configuration of visualization of the scanning progress. final IntegergetScanIncompleteDataTimeout()Timeout for the scan process. final UnitsetScanIncompleteDataTimeout(Integer scanIncompleteDataTimeout)Timeout for the scan process. final ScanCompletionOverlaygetSuccessOverlay()Configuration of the success overlay. final UnitsetSuccessOverlay(ScanCompletionOverlay successOverlay)Configuration of the success overlay. final ScanCompletionOverlaygetIncompleteDataOverlay()Configuration of the success overlay. final UnitsetIncompleteDataOverlay(ScanCompletionOverlay incompleteDataOverlay)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 CreditCardScannerScreenConfigurationclone()final static CreditCardScannerScreenConfigurationdefault()-
-
Constructor Detail
-
CreditCardScannerScreenConfiguration
CreditCardScannerScreenConfiguration(Map<String, Object> source)
-
CreditCardScannerScreenConfiguration
CreditCardScannerScreenConfiguration(JSONObject json)
-
CreditCardScannerScreenConfiguration
CreditCardScannerScreenConfiguration(String version, String screen, CreditCardScannerScreenTextLocalization localization, Palette palette, ScanbotColor backgroundColor, CameraConfiguration cameraConfiguration, CameraPermissionScreen cameraPermission, UserGuidanceConfiguration topUserGuidance, CreditCardScanGuidanceConfiguration scanStatusUserGuidance, TopBarConfiguration topBar, IconButton topBarOpenIntroScreenButton, CreditCardScannerIntroScreenConfiguration introScreen, ActionBarConfiguration actionBar, PermanentViewFinderConfiguration viewFinder, CreditCardScannerConfiguration scannerConfiguration, Boolean exampleOverlayVisible, CreditCardScanningProgressConfiguration scanningProgress, Integer scanIncompleteDataTimeout, ScanCompletionOverlay successOverlay, ScanCompletionOverlay incompleteDataOverlay, 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 "CreditCardScanner"
-
getLocalization
final CreditCardScannerScreenTextLocalization getLocalization()
Configuration of the all strings for credit card scanner screen.
-
setLocalization
final Unit setLocalization(CreditCardScannerScreenTextLocalization localization)
Configuration of the all strings for credit card 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 credit card scanner screen.
Default is "?sbColorSurfaceLow"
-
setBackgroundColor
final Unit setBackgroundColor(ScanbotColor backgroundColor)
The background color of the credit card 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.
-
getScanStatusUserGuidance
final CreditCardScanGuidanceConfiguration getScanStatusUserGuidance()
Configuration of the user guidance for the scanning status.
-
setScanStatusUserGuidance
final Unit setScanStatusUserGuidance(CreditCardScanGuidanceConfiguration scanStatusUserGuidance)
Configuration of the user guidance for the scanning status.
-
getTopBar
final TopBarConfiguration getTopBar()
Configuration of the top bar on the credit card scanner screen.
-
setTopBar
final Unit setTopBar(TopBarConfiguration topBar)
Configuration of the top bar on the credit card 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 CreditCardScannerIntroScreenConfiguration getIntroScreen()
Configuration of the introduction screen for the credit card scanner.
-
setIntroScreen
final Unit setIntroScreen(CreditCardScannerIntroScreenConfiguration introScreen)
Configuration of the introduction screen for the credit card 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 CreditCardScannerConfiguration getScannerConfiguration()
Configuration for the credit card recognizer.
-
setScannerConfiguration
final Unit setScannerConfiguration(CreditCardScannerConfiguration scannerConfiguration)
Configuration for the credit card recognizer.
-
getExampleOverlayVisible
final Boolean getExampleOverlayVisible()
Flag to show or hide the preset button.
Default is true
-
setExampleOverlayVisible
final Unit setExampleOverlayVisible(Boolean exampleOverlayVisible)
Flag to show or hide the preset button.
Default is true
-
getScanningProgress
final CreditCardScanningProgressConfiguration getScanningProgress()
Configuration of visualization of the scanning progress.
-
setScanningProgress
final Unit setScanningProgress(CreditCardScanningProgressConfiguration scanningProgress)
Configuration of visualization of the scanning progress.
-
getScanIncompleteDataTimeout
final Integer getScanIncompleteDataTimeout()
Timeout for the scan process. If the scan process takes longer than this value, the incomplete result will be returned.
Default is 3000
-
setScanIncompleteDataTimeout
final Unit setScanIncompleteDataTimeout(Integer scanIncompleteDataTimeout)
Timeout for the scan process. If the scan process takes longer than this value, the incomplete result will be returned.
Default is 3000
-
getSuccessOverlay
final ScanCompletionOverlay getSuccessOverlay()
Configuration of the success overlay.
-
setSuccessOverlay
final Unit setSuccessOverlay(ScanCompletionOverlay successOverlay)
Configuration of the success overlay.
-
getIncompleteDataOverlay
final ScanCompletionOverlay getIncompleteDataOverlay()
Configuration of the success overlay.
-
setIncompleteDataOverlay
final Unit setIncompleteDataOverlay(ScanCompletionOverlay incompleteDataOverlay)
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 CreditCardScannerScreenConfiguration clone()
-
default
final static CreditCardScannerScreenConfiguration default()
-
-
-
-