Note

This API is still in beta and may change in future versions of Scandit Data Capture SDK.

Barcode Definition Builder

Defined in library scandit_datacapture_barcode

BarcodeDefinitionBuilder
class BarcodeDefinitionBuilder

Added in version 8.1.0

A fluent builder class for creating BarcodeDefinition objects with a convenient, chainable interface. This builder provides methods to add various field types and configure their properties in a structured manner.

setOptional(optional)
BarcodeDefinitionBuilder setOptional(bool optional)

Added in version 8.1.0

Sets whether the barcode component is optional in the item definition. Returns the builder for configuring the rest of the properties.

setSymbologies(symbologies)
BarcodeDefinitionBuilder setSymbologies(Set<Symbology> symbologies)

Added in version 8.1.0

Sets the barcode symbologies for the component. Returns the builder for configuring the rest of the properties.

setPreset(preset)
BarcodeDefinitionBuilder setPreset(ScanComponentBarcodePreset? preset)

Added in version 8.1.0

Sets a predefined preset for the component. Returns the builder for configuring the rest of the properties.

setLocation(location)
BarcodeDefinitionBuilder setLocation(Quadrilateral? location)

Added in version 8.1.0

Sets an expected location for the barcode. Returns the builder for configuring the rest of the properties.

setHiddenProperties(hiddenProperties)
BarcodeDefinitionBuilder setHiddenProperties(
        String hiddenProperties)

Added in version 8.1.0

Sets the hidden properties for the component. Returns the builder for configuring the rest of the properties.

setValueRegexes(valueRegexes)
BarcodeDefinitionBuilder setValueRegexes(List<String> valueRegexes)

Added in version 8.1.0

Sets the value regexes for the barcode. Returns the builder for configuring the rest of the properties.

setAnchorRegexes(anchorRegexes)
BarcodeDefinitionBuilder setAnchorRegexes(
        List<String> anchorRegexes)

Added in version 8.1.0

Sets the anchor regexes for the barcode. Returns the builder for configuring the rest of the properties.

build()
BarcodeDefinition build()

Added in version 8.1.0

Builds the BarcodeDefinition object.