Package io.scanbot.sdk.barcode.entity
Class BarcodeScannerConfigBuilder
-
- All Implemented Interfaces:
public final class BarcodeScannerConfigBuilder
BarcodeScannerConfig-builder. Targets Java users which do not have access to BarcodeScannerConfig.copy method.
-
-
Method Summary
Modifier and Type Method Description final BarcodeScannerConfigBuilder
setBarcodeFormats(List<BarcodeFormat> barcodeFormats)
Sets list of BarcodeFormat to scan final BarcodeScannerConfigBuilder
setAcceptedDocumentFormats(List<BarcodeDocumentFormat> acceptedDocumentFormats)
Sets list of BarcodeDocumentFormat to scan final BarcodeScannerConfigBuilder
setEngineMode(EngineMode engineMode)
final BarcodeScannerConfigBuilder
setSaveCameraPreviewFrame(Boolean saveCameraPreviewFrame)
Sets whether detector should save a frame with successful detection result final BarcodeScannerConfigBuilder
setAdditionalConfig(BarcodeScannerAdditionalConfig additionalConfig)
Setter for additional config. final BarcodeScannerConfigBuilder
modifyAdditionalConfig(Function1<BarcodeScannerAdditionalConfigBuilder, Unit> builderFunc)
Same as setAdditionalConfig but allows to modify only a few of existing params. -
-
Method Detail
-
setBarcodeFormats
final BarcodeScannerConfigBuilder setBarcodeFormats(List<BarcodeFormat> barcodeFormats)
Sets list of BarcodeFormat to scan
-
setAcceptedDocumentFormats
final BarcodeScannerConfigBuilder setAcceptedDocumentFormats(List<BarcodeDocumentFormat> acceptedDocumentFormats)
Sets list of BarcodeDocumentFormat to scan
- Parameters:
acceptedDocumentFormats
- accepted document formats
-
setEngineMode
final BarcodeScannerConfigBuilder setEngineMode(EngineMode engineMode)
- Parameters:
engineMode
- new EngineMode, default is EngineMode.NextGen.
-
setSaveCameraPreviewFrame
final BarcodeScannerConfigBuilder setSaveCameraPreviewFrame(Boolean saveCameraPreviewFrame)
Sets whether detector should save a frame with successful detection result
- Parameters:
saveCameraPreviewFrame
- if flag istrue
- ResultHandler will receive BarcodeScanningResult which contains the camera preview frame Bitmap, otherwise - the preview frame will not be collected
-
setAdditionalConfig
final BarcodeScannerConfigBuilder setAdditionalConfig(BarcodeScannerAdditionalConfig additionalConfig)
Setter for additional config.
- Parameters:
additionalConfig
- additional parameters entity
-
modifyAdditionalConfig
final BarcodeScannerConfigBuilder modifyAdditionalConfig(Function1<BarcodeScannerAdditionalConfigBuilder, Unit> builderFunc)
Same as setAdditionalConfig but allows to modify only a few of existing params.
-
-
-
-