Class BarcodeScannerScreenConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class BarcodeScannerScreenConfiguration implements Parcelable
Configuration of the barcode scanner screen.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringversionprivate final Stringscreenprivate Palettepaletteprivate BarcodeTextLocalizationlocalizationprivate ScanbotColorbackgroundColorprivate TopBarConfigurationtopBarprivate ActionBarConfigurationactionBarprivate ViewFinderConfigurationviewFinderprivate UserGuidanceConfigurationuserGuidanceprivate CameraPermissionScreencameraPermissionprivate CameraConfigurationcameraConfigurationprivate BarcodeScannerConfigurationscannerConfigurationprivate BarcodeUseCaseuseCaseprivate Soundsoundprivate Vibrationvibrationprivate Timeoutstimeoutsprivate BooleankeepScreenOn
-
Constructor Summary
Constructors Constructor Description BarcodeScannerScreenConfiguration(Map<String, Object> source)BarcodeScannerScreenConfiguration(JSONObject json)BarcodeScannerScreenConfiguration(String version, String screen, Palette palette, BarcodeTextLocalization localization, ScanbotColor backgroundColor, TopBarConfiguration topBar, ActionBarConfiguration actionBar, ViewFinderConfiguration viewFinder, UserGuidanceConfiguration userGuidance, CameraPermissionScreen cameraPermission, CameraConfiguration cameraConfiguration, BarcodeScannerConfiguration scannerConfiguration, BarcodeUseCase useCase, Sound sound, Vibration vibration, Timeouts timeouts, 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 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 BarcodeTextLocalizationgetLocalization()Configuration of the all strings for barcode scanner. final UnitsetLocalization(BarcodeTextLocalization localization)Configuration of the all strings for barcode scanner. final ScanbotColorgetBackgroundColor()Color of the screen's background. final UnitsetBackgroundColor(ScanbotColor backgroundColor)Color of the screen's background. final TopBarConfigurationgetTopBar()Configuration of the top bar. final UnitsetTopBar(TopBarConfiguration topBar)Configuration of the top bar. final ActionBarConfigurationgetActionBar()Configuration of the action bar. final UnitsetActionBar(ActionBarConfiguration actionBar)Configuration of the action bar. final ViewFinderConfigurationgetViewFinder()Configuration of the view finder. final UnitsetViewFinder(ViewFinderConfiguration viewFinder)Configuration of the view finder. final UserGuidanceConfigurationgetUserGuidance()Configuration of the text hint guiding users to move the view finder over a barcode. final UnitsetUserGuidance(UserGuidanceConfiguration userGuidance)Configuration of the text hint guiding users to move the view finder over a barcode. final CameraPermissionScreengetCameraPermission()Configuration of the dialog for requesting camera permissions. final UnitsetCameraPermission(CameraPermissionScreen cameraPermission)Configuration of the dialog for requesting camera permissions. final CameraConfigurationgetCameraConfiguration()Configuration of the camera behavior. final UnitsetCameraConfiguration(CameraConfiguration cameraConfiguration)Configuration of the camera behavior. final BarcodeScannerConfigurationgetScannerConfiguration()Configuration of the scanning behavior. final UnitsetScannerConfiguration(BarcodeScannerConfiguration scannerConfiguration)Configuration of the scanning behavior. final BarcodeUseCasegetUseCase()Configuration of the barcode scanner screen's behavior. final UnitsetUseCase(BarcodeUseCase useCase)Configuration of the barcode scanner screen's behavior. final SoundgetSound()Configuration of the scan confirmation sound. final UnitsetSound(Sound sound)Configuration of the scan confirmation sound. final VibrationgetVibration()Configuration of the scan scan confirmation vibration. final UnitsetVibration(Vibration vibration)Configuration of the scan scan confirmation vibration. final TimeoutsgetTimeouts()Configuration of timeouts. final UnitsetTimeouts(Timeouts timeouts)Configuration of timeouts. 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 BarcodeScannerScreenConfigurationclone()final static BarcodeScannerScreenConfigurationdefault()-
-
Constructor Detail
-
BarcodeScannerScreenConfiguration
BarcodeScannerScreenConfiguration(JSONObject json)
-
BarcodeScannerScreenConfiguration
BarcodeScannerScreenConfiguration(String version, String screen, Palette palette, BarcodeTextLocalization localization, ScanbotColor backgroundColor, TopBarConfiguration topBar, ActionBarConfiguration actionBar, ViewFinderConfiguration viewFinder, UserGuidanceConfiguration userGuidance, CameraPermissionScreen cameraPermission, CameraConfiguration cameraConfiguration, BarcodeScannerConfiguration scannerConfiguration, BarcodeUseCase useCase, Sound sound, Vibration vibration, Timeouts timeouts, 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 "BarcodeScanner"
-
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.
-
getLocalization
final BarcodeTextLocalization getLocalization()
Configuration of the all strings for barcode scanner.
-
setLocalization
final Unit setLocalization(BarcodeTextLocalization localization)
Configuration of the all strings for barcode scanner.
-
getBackgroundColor
final ScanbotColor getBackgroundColor()
Color of the screen's background.
Default is "?sbColorSurfaceLow"
-
setBackgroundColor
final Unit setBackgroundColor(ScanbotColor backgroundColor)
Color of the screen's background.
Default is "?sbColorSurfaceLow"
-
getTopBar
final TopBarConfiguration getTopBar()
Configuration of the top bar.
-
setTopBar
final Unit setTopBar(TopBarConfiguration topBar)
Configuration of the top bar.
-
getActionBar
final ActionBarConfiguration getActionBar()
Configuration of the action bar.
-
setActionBar
final Unit setActionBar(ActionBarConfiguration actionBar)
Configuration of the action bar.
-
getViewFinder
final ViewFinderConfiguration getViewFinder()
Configuration of the view finder.
-
setViewFinder
final Unit setViewFinder(ViewFinderConfiguration viewFinder)
Configuration of the view finder.
-
getUserGuidance
final UserGuidanceConfiguration getUserGuidance()
Configuration of the text hint guiding users to move the view finder over a barcode.
-
setUserGuidance
final Unit setUserGuidance(UserGuidanceConfiguration userGuidance)
Configuration of the text hint guiding users to move the view finder over a barcode.
-
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.
-
getCameraConfiguration
final CameraConfiguration getCameraConfiguration()
Configuration of the camera behavior.
-
setCameraConfiguration
final Unit setCameraConfiguration(CameraConfiguration cameraConfiguration)
Configuration of the camera behavior.
-
getScannerConfiguration
final BarcodeScannerConfiguration getScannerConfiguration()
Configuration of the scanning behavior.
-
setScannerConfiguration
final Unit setScannerConfiguration(BarcodeScannerConfiguration scannerConfiguration)
Configuration of the scanning behavior.
-
getUseCase
final BarcodeUseCase getUseCase()
Configuration of the barcode scanner screen's behavior.
-
setUseCase
final Unit setUseCase(BarcodeUseCase useCase)
Configuration of the barcode scanner screen's behavior.
-
getVibration
final Vibration getVibration()
Configuration of the scan scan confirmation vibration.
-
setVibration
final Unit setVibration(Vibration vibration)
Configuration of the scan scan confirmation vibration.
-
getTimeouts
final Timeouts getTimeouts()
Configuration of timeouts.
-
setTimeouts
final Unit setTimeouts(Timeouts timeouts)
Configuration of timeouts.
-
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 BarcodeScannerScreenConfiguration clone()
-
default
final static BarcodeScannerScreenConfiguration default()
-
-
-
-