Class BarcodeScannerConfiguration
- Namespace
- ScanbotSDK.MAUI.Barcode.Core
- Assembly
- ScanbotSDK.Shared.dll
Configuration for the barcode scanner.
public class BarcodeScannerConfiguration
- Inheritance
-
BarcodeScannerConfiguration
- Inherited Members
Properties
BarcodeFormatConfigurations
Options for barcode decoding.
public BarcodeFormatConfigurationBase[] BarcodeFormatConfigurations { get; set; }
Property Value
EngineMode
The engine mode for barcode scanning.
Default is NEXT_GEN
public BarcodeScannerEngineMode EngineMode { get; set; }
Property Value
ExtractedDocumentFormats
List of document formats to be extracted. Barcodes that decode to one of the extracted document formats will have extractedDocument field in BarcodeItem populated with the parsed document. By default all supported barcode document formats are accepted. If empty, no barcodes will be parsed into documents. To only accept the document formats listed in extractedDocumentFormats, the property onlyAcceptDocuments must be true.
public BarcodeDocumentFormat[] ExtractedDocumentFormats { get; set; }
Property Value
OnlyAcceptDocuments
If true and extractedDocumentFormats is not empty, then barcodes that don't decode to one of the extracted document formats will be ignored.
Default is false
public bool OnlyAcceptDocuments { get; set; }
Property Value
OptimizedForOverlays
If true, the quads of linear (1D) barcodes will be further refined to more closely match the barcode's outline in the input image. This will also produce stabler barcode outlines across frames for use cases such as AR.
Default is false
public bool OptimizedForOverlays { get; set; }
Property Value
ReturnBarcodeImage
If true, the barcode image will be returned in the BarcodeItem.
Default is false
public bool ReturnBarcodeImage { get; set; }
Property Value
Methods
FromJson(string)
public static BarcodeScannerConfiguration FromJson(string rawJson)
Parameters
rawJson
string