Serial Number Barcode

Defined in library scandit_datacapture_label

SerialNumberBarcode
class SerialNumberBarcode : BarcodeField

Added in version 7.2.0

A specialized barcode field for capturing serial numbers. This predefined field type is configured with default settings optimized for common serial number barcode formats.

Use the builder pattern with SerialNumberBarcodeBuilder for convenient configuration, or create instances directly using the various factory methods.

SerialNumberBarcode.initWithNameAndSymbologySettings(name, symbologySettings)
factory SerialNumberBarcode.initWithNameAndSymbologySettings(
        String name,
        List<SymbologySettings> symbologySettings)

Added in version 7.2.0

Builds a new instance of this class with the provided name.

SerialNumberBarcode.initWithNameAndSymbologies(name, symbologies)
factory SerialNumberBarcode.initWithNameAndSymbologies(
        String name,
        Set<Symbology> symbologies)

Added in version 7.2.0

Builds a new instance of this class with the provided name.

SerialNumberBarcode.initWithNameAndSymbology(name, symbology)
factory SerialNumberBarcode.initWithNameAndSymbology(
        String name,
        Symbology symbology)

Added in version 7.2.0

Builds a new instance of this class with the provided name.

name
String get name

Added in version 7.2.0

The name of this field definition, used to identify it within the label definition.

patterns
List<String> get patterns

Added in version 7.2.0

The regex patterns that identify the target string in the scanned content.

isOptional
bool get isOptional

Added in version 7.2.0

Whether the field is optional or mandatory. This is helpful when certain fields may not be present on every scan.

symbologies
List<SymbologySettings> get symbologies

Added in version 7.2.0

The list of barcode symbologies that this field can accept, along with their specific settings.