Class VinScannerConfiguration
-
- All Implemented Interfaces:
public final class VinScannerConfigurationClass which is used to configure VinScannerActivity Contains settings indicating view's behaviour, texts and appearance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classVinScannerConfiguration.Companion
-
Field Summary
Fields Modifier and Type Field Description private final VinScannerJsonConfigurationparamsprivate final VinScannerNativeConfigurationnativeParamspublic final static VinScannerConfiguration.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description VinScannerConfiguration()
-
Method Summary
Modifier and Type Method Description final VinScannerJsonConfigurationgetParams()final VinScannerNativeConfigurationgetNativeParams()final UnitsetFlashEnabled(Boolean flashEnabled)Controls whether the flash should be initially enabled. final UnitsetOrientationLockMode(CameraOrientationMode cameraOrientationMode)Orientation lock mode of the camera: PORTRAIT or LANDSCAPE. final UnitsetCameraModule(CameraModule cameraModule)Set supported camera module: CameraModule.BACK, CameraModule.FRONT or others. final UnitsetCameraPreviewMode(CameraPreviewMode cameraPreviewMode)Preview mode of the camera: fit-in or fill-in. final UnitsetTopBarBackgroundColor(Integer topBarBackgroundColor)Background color of the top toolbar. final UnitsetTopBarButtonsColor(Integer topBarButtonsColor)Color of the titles of all buttons in the top toolbar. final UnitsetTopBarButtonsInactiveColor(Integer topBarButtonsInactiveColor)Color of the titles of all buttons in the top toolbar. final UnitsetCameraOverlayColor(Integer cameraOverlayColor)Background color outside of the finder window. final UnitsetFinderLineWidth(Integer finderLineWidth)Thickness of the finder window's outline in Px. final UnitsetFinderLineColor(Integer finderLineColor)Color of the finder window's outline. final UnitsetFinderTextHintColor(Integer finderTextHintColor)The color of the text with user guidance below the finder view. final UnitsetCancelButtonTitle(String cancelButtonTitle)Title of the cancel button. final UnitsetCancelButtonIcon(Integer cancelButtonIcon)Icon of the cancel button. final UnitsetEnableCameraExplanationText(String enableCameraExplanationText)Text that will be displayed when the app is not allowed to use the camera, prompting the user to enable the usage of the camera. final UnitsetEnableCameraButtonTitle(String enableCameraButtonTitle)Title of the button that opens the screen where the user can allow the usage of the camera by the app. final UnitsetMinimumNumberOfRequiredFramesWithEqualScanningResult(Integer numberOfFrames)Minimum number of accumulated frames that have equal result. final UnitsetMaximumNumberOfAccumulatedFrames(Integer numberOfFrames)Maximum number of accumulated frames to inspect before actual result is returned. final UnitsetOcrResolutionLimit(Integer ocrResolutionLimit)The image will be downscaled to the given value during the processing. final UnitsetUseButtonsAllCaps(Boolean allCaps)Controls whether buttons should use all capitals style. final UnitsetFinderAspectRatio(AspectRatio finderAspectRatio)Aspect ratio of the finder window. final UnitsetSignificantShakeDelay(Long significantShakeDelay)Detection will be paused after significant movement, in milliseconds. final UnitsetGuidanceText(String guidanceText)User guidance hint text. final UnitsetTouchToFocusEnabled(Boolean enabled)Controls whether the touch to focus feature should be enabled. final UnitsetExtractVINFromBarcode(Boolean extractVINFromBarcode)Controls whether the scanner should try to extract the VIN from possibly available barcodes. -
-
Method Detail
-
getParams
final VinScannerJsonConfiguration getParams()
-
getNativeParams
final VinScannerNativeConfiguration getNativeParams()
-
setFlashEnabled
final Unit setFlashEnabled(Boolean flashEnabled)
Controls whether the flash should be initially enabled. The default value is FALSE.
-
setOrientationLockMode
final Unit setOrientationLockMode(CameraOrientationMode cameraOrientationMode)
Orientation lock mode of the camera: PORTRAIT or LANDSCAPE. By default the camera orientation is not locked.
-
setCameraModule
final Unit setCameraModule(CameraModule cameraModule)
Set supported camera module: CameraModule.BACK, CameraModule.FRONT or others. Optional. By default is CameraModule.BACK.
-
setCameraPreviewMode
final Unit setCameraPreviewMode(CameraPreviewMode cameraPreviewMode)
Preview mode of the camera: fit-in or fill-in. Optional, default is CameraPreviewMode.FILL_IN.
-
setTopBarBackgroundColor
final Unit setTopBarBackgroundColor(Integer topBarBackgroundColor)
Background color of the top toolbar.
-
setTopBarButtonsColor
final Unit setTopBarButtonsColor(Integer topBarButtonsColor)
Color of the titles of all buttons in the top toolbar.
-
setTopBarButtonsInactiveColor
final Unit setTopBarButtonsInactiveColor(Integer topBarButtonsInactiveColor)
Color of the titles of all buttons in the top toolbar.
-
setCameraOverlayColor
final Unit setCameraOverlayColor(Integer cameraOverlayColor)
Background color outside of the finder window.
-
setFinderLineWidth
final Unit setFinderLineWidth(Integer finderLineWidth)
Thickness of the finder window's outline in Px.
-
setFinderLineColor
final Unit setFinderLineColor(Integer finderLineColor)
Color of the finder window's outline.
-
setFinderTextHintColor
final Unit setFinderTextHintColor(Integer finderTextHintColor)
The color of the text with user guidance below the finder view.
-
setCancelButtonTitle
final Unit setCancelButtonTitle(String cancelButtonTitle)
Title of the cancel button.
-
setCancelButtonIcon
final Unit setCancelButtonIcon(Integer cancelButtonIcon)
Icon of the cancel button.
-
setEnableCameraExplanationText
final Unit setEnableCameraExplanationText(String enableCameraExplanationText)
Text that will be displayed when the app is not allowed to use the camera, prompting the user to enable the usage of the camera.
-
setEnableCameraButtonTitle
final Unit setEnableCameraButtonTitle(String enableCameraButtonTitle)
Title of the button that opens the screen where the user can allow the usage of the camera by the app.
-
setMinimumNumberOfRequiredFramesWithEqualScanningResult
final Unit setMinimumNumberOfRequiredFramesWithEqualScanningResult(Integer numberOfFrames)
Minimum number of accumulated frames that have equal result.
-
setMaximumNumberOfAccumulatedFrames
final Unit setMaximumNumberOfAccumulatedFrames(Integer numberOfFrames)
Maximum number of accumulated frames to inspect before actual result is returned.
-
setOcrResolutionLimit
final Unit setOcrResolutionLimit(Integer ocrResolutionLimit)
The image will be downscaled to the given value during the processing. If the quality of the scanning is not enough, try to increase the limit. This variable affects the performance of the scanning process. Higher the size limit - better the quality, but the recognition is slower
0 - do not rescale.
-
setUseButtonsAllCaps
final Unit setUseButtonsAllCaps(Boolean allCaps)
Controls whether buttons should use all capitals style.
-
setFinderAspectRatio
final Unit setFinderAspectRatio(AspectRatio finderAspectRatio)
Aspect ratio of the finder window.
-
setSignificantShakeDelay
final Unit setSignificantShakeDelay(Long significantShakeDelay)
Detection will be paused after significant movement, in milliseconds. Default is 1000.
-
setGuidanceText
final Unit setGuidanceText(String guidanceText)
User guidance hint text.
-
setTouchToFocusEnabled
final Unit setTouchToFocusEnabled(Boolean enabled)
Controls whether the touch to focus feature should be enabled. Default is
true.
-
setExtractVINFromBarcode
final Unit setExtractVINFromBarcode(Boolean extractVINFromBarcode)
Controls whether the scanner should try to extract the VIN from possibly available barcodes. The default value is FALSE.
-
-
-
-