Custom Barcode Builder

Defined in package com.scandit.datacapture.label.capture

CustomBarcodeBuilder
class CustomBarcodeBuilder : BarcodeFieldBuilder

Added in version 6.21.0

Builder class for creating CustomBarcode field definitions. Provides a fluent interface for configuring barcode field properties including symbologies, validation patterns, location constraints, and other field-specific settings.

location
@NonNull LabelFieldLocation getLocation()
void setLocation(@NonNull LabelFieldLocation value)

Added in version 6.21.0

The expected location of this barcode field within the label.

setLocation(location)
@NonNull CustomBarcodeBuilder setLocation(@NonNull LabelFieldLocation location)

Added in version 6.21.0

Sets the expected location of this barcode field within the label using a predefined or custom location.

setLocation(location)
@NonNull CustomBarcodeBuilder setLocation(@NonNull RectF location)

Added in version 6.21.0

Sets the expected location of this barcode field using exact coordinates.

setLocation(left, top, right, bottom)
@NonNull CustomBarcodeBuilder setLocation(float left,
        float top,
        float right,
        float bottom)

Added in version 6.21.0

Sets the expected location of this barcode field using coordinate values.

setLocation(location)
@NonNull CustomBarcodeBuilder setLocation(@NonNull Rect location)

Added in version 6.21.0

Sets the expected location of this barcode field using a rectangle.

setDataTypePatterns(dataTypePatterns)
@NonNull CustomBarcodeBuilder setDataTypePatterns(@NonNull String dataTypePatterns)

Added in version 6.21.0

Sets a single data type pattern for this barcode field.

setDataTypePatterns(dataTypePatterns)
@NonNull CustomBarcodeBuilder setDataTypePatterns(@NonNull Iterable<@NonNull String> dataTypePatterns)

Added in version 6.21.0

Used to specify keywords or phrases that help identify the context of the field. This is particularly useful when the label contains multiple fields that could match the same pattern (e.g., when both packaging and expiry dates are present).

setDataTypePattern(dataTypePattern)
@NonNull CustomBarcodeBuilder setDataTypePattern(@NonNull Regex dataTypePattern)

Added in version 6.21.0

Used to specify keywords or phrases that help identify the context of the field. This is particularly useful when the label contains multiple fields that could match the same pattern (e.g., when both packaging and expiry dates are present).

build(name)
@NonNull CustomBarcode build(@NonNull String name)

Added in version 6.21.0

Creates a CustomBarcode field definition with the specified name and all configured properties. This method finalizes the builder configuration and returns a field definition that can be added to a LabelDefinition.

getThis()
@NonNull CustomBarcodeBuilder getThis()

Added in version 6.21.0

Returns this builder instance for method chaining.