Note
This API is still in beta and may change in future versions of Scandit Data Capture SDK.
Barcode Definition Builder
Defined in package com.scandit.datacapture.usi.capture.component.barcode
- BarcodeDefinitionBuilder
class BarcodeDefinitionBuilderAdded in version 8.0.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)
@NonNull BarcodeDefinitionBuilder setOptional(
booleanoptional)Added in version 8.0.0
Sets whether the barcode component is optional in the item definition. Returns the builder for configuring the rest of the properties.
- setSymbologies(symbologies)
@NonNull BarcodeDefinitionBuilder setSymbologies(@NonNull Set<Symbology> symbologies)
Added in version 8.0.0
Sets the barcode symbologies for the component. Returns the builder for configuring the rest of the properties.
- setPreset(preset)
@NonNull BarcodeDefinitionBuilder setPreset(ScanComponentBarcodePreset preset)
Added in version 8.0.0
Sets a predefined preset for the component. Returns the builder for configuring the rest of the properties.
- setLocation(location)
@NonNull BarcodeDefinitionBuilder setLocation(@Nullable Quadrilateral location)
Added in version 8.0.0
Sets an expected location for the barcode. Returns the builder for configuring the rest of the properties.
- setHiddenProperties(hiddenProperties)
@NonNull BarcodeDefinitionBuilder setHiddenProperties( @NonNull String hiddenProperties)
Added in version 8.0.0
Sets the hidden properties for the component. Returns the builder for configuring the rest of the properties.
- setValueRegexes(valueRegexes)
@NonNull BarcodeDefinitionBuilder setValueRegexes(@NonNull List<@NonNull String> valueRegexes)
Added in version 8.0.0
Sets the value regexes for the barcode. Returns the builder for configuring the rest of the properties.
- setAnchorRegexes(anchorRegexes)
@NonNull BarcodeDefinitionBuilder setAnchorRegexes( @NonNull List<@NonNull String> anchorRegexes)
Added in version 8.0.0
Sets the anchor regexes for the barcode. Returns the builder for configuring the rest of the properties.
- build()
@NonNull BarcodeDefinition build()
Added in version 8.0.0
Builds the BarcodeDefinition object.