Custom Barcode

Defined under the namespace Scandit.Datacapture.Label

CustomBarcode
class CustomBarcode : BarcodeField

Added in version 6.22.0

Defines a barcode field with customizable symbology support and validation patterns. This field type allows you to specify which barcode symbologies should be recognized and optionally apply data validation patterns to the decoded content.

initWithNameAndSymbologySettings(name, symbologySettings)
static initWithNameAndSymbologySettings(name: string,
        symbologySettings: SymbologySettings[]): CustomBarcode

Added in version 6.22.0

Create a new custom barcode field definition with the given name and symbology settings.

initWithNameAndSymbologies(name, symbologies)
static initWithNameAndSymbologies(name: string,
        symbologies: Symbology[]): CustomBarcode

Added in version 6.22.0

Create a new custom barcode field definition with the given name and symbology settings.

initWithNameAndSymbology(name, symbology)
static initWithNameAndSymbology(name: string,
        symbology: Symbology): CustomBarcode

Added in version 6.22.0

Create a new custom barcode field definition with the given name and symbology settings.

dataTypePatterns
dataTypePatterns: string[]

Added in version 6.22.0

Context-identifying keywords or phrases used to distinguish between fields that may have similar patterns. These patterns help Smart Label Capture identify which field the captured data belongs to when multiple fields could match the same regex pattern.

For example, when a label contains both expiry date and packing date fields, you can use dataTypePatterns like [“exp”, “expiry”] for the expiry date field and [“pack”, “packing”] for the packing date field to help the system correctly identify which date is which.

location
location: LabelFieldLocation | null

Added in version 6.22.0

The spatial location constraint for this barcode field within the label. This can be used to specify where on the label this field is expected to appear, helping to improve recognition accuracy and speed by focusing the search area.