Class BarcodeScannerConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class BarcodeScannerConfiguration 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 BarcodeRecognizerConfigurationrecognizerConfigurationprivate BarcodeUseCaseuseCaseprivate Soundsoundprivate Vibrationvibrationprivate Timeoutstimeouts
-
Constructor Summary
Constructors Constructor Description BarcodeScannerConfiguration(Map<String, Object> source)BarcodeScannerConfiguration(JSONObject json)BarcodeScannerConfiguration(String version, String screen, Palette palette, BarcodeTextLocalization localization, ScanbotColor backgroundColor, TopBarConfiguration topBar, ActionBarConfiguration actionBar, ViewFinderConfiguration viewFinder, UserGuidanceConfiguration userGuidance, CameraPermissionScreen cameraPermission, CameraConfiguration cameraConfiguration, BarcodeRecognizerConfiguration recognizerConfiguration, BarcodeUseCase useCase, Sound sound, Vibration vibration, Timeouts timeouts)
-
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 BarcodeRecognizerConfigurationgetRecognizerConfiguration()Configuration of the scanning behavior. final UnitsetRecognizerConfiguration(BarcodeRecognizerConfiguration recognizerConfiguration)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 JSONObjecttoJson()final static BarcodeScannerConfigurationdefault()-
-
Constructor Detail
-
BarcodeScannerConfiguration
BarcodeScannerConfiguration(JSONObject json)
-
BarcodeScannerConfiguration
BarcodeScannerConfiguration(String version, String screen, Palette palette, BarcodeTextLocalization localization, ScanbotColor backgroundColor, TopBarConfiguration topBar, ActionBarConfiguration actionBar, ViewFinderConfiguration viewFinder, UserGuidanceConfiguration userGuidance, CameraPermissionScreen cameraPermission, CameraConfiguration cameraConfiguration, BarcodeRecognizerConfiguration recognizerConfiguration, BarcodeUseCase useCase, Sound sound, Vibration vibration, Timeouts timeouts)
-
-
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.
-
getRecognizerConfiguration
final BarcodeRecognizerConfiguration getRecognizerConfiguration()
Configuration of the scanning behavior.
-
setRecognizerConfiguration
final Unit setRecognizerConfiguration(BarcodeRecognizerConfiguration recognizerConfiguration)
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.
-
toJson
final JSONObject toJson()
-
default
final static BarcodeScannerConfiguration default()
-
-
-
-