public class BarcodeScannerConfigBuilder
class BarcodeScannerConfig-builder.
Targets Java users which do not have access to class BarcodeScannerConfig method.
@NotNull public BarcodeScannerConfigBuilder setBarcodeFormats(@NotNull java.util.List<? extends io.scanbot.sdk.barcode.entity.BarcodeFormat> barcodeFormats)
Sets list of enum BarcodeFormat to scan
barcodeFormats - enum BarcodeFormat@NotNull public BarcodeScannerConfigBuilder setAcceptedDocumentFormats(@NotNull java.util.List<? extends io.scanbot.sdk.barcode.entity.BarcodeDocumentFormat> acceptedDocumentFormats)
Sets list of enum BarcodeDocumentFormat to scan
acceptedDocumentFormats - accepted document formatsenum BarcodeDocumentFormat@NotNull public BarcodeScannerConfigBuilder setHighSensitivityEnabled(boolean highSensitivityEnabled)
highSensitivityEnabled - pass true to enable barcode scanning in high sensitivity mode, false otherwise.@NotNull public BarcodeScannerConfigBuilder setDisableMlDetector(boolean disableMlDetector)
Allows to set detector type which suits needs best:
passing true disables BarcodeDetectorType.ML_BASED detection which targets more complex barcode types or tricky visibility conditions.
Can be used to detect just one QR code or PDF-417 which is clearly visible - such detection might work much faster.
disableMlDetector - whether to disable ML-based detection.@NotNull public BarcodeScannerConfigBuilder setSaveCameraPreviewFrame(boolean saveCameraPreviewFrame)
Sets whether detector should save a frame with successful detection result
saveCameraPreviewFrame - if flag is true - interface BarcodeDetectorFrameHandler.ResultHandler will receive class BarcodeScanningResult which contains the camera preview frame Bitmap,otherwise - the preview frame will not be collected@NotNull public BarcodeScannerConfigBuilder setAdditionalConfig(@NotNull BarcodeScannerAdditionalConfig additionalConfig)
Setter for additional config.
additionalConfig - additional parameters entityclass BarcodeScannerAdditionalConfigBuilder@NotNull public BarcodeScannerConfigBuilder modifyAdditionalConfig(@NotNull kotlin.jvm.functions.Function1<? super io.scanbot.sdk.barcode.entity.BarcodeScannerAdditionalConfigBuilder,kotlin.Unit> builderFunc)
Same as setAdditionalConfig but allows to modify only a few of existing params.