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)
fun setOptional(optional:
Boolean): BarcodeDefinitionBuilderAdded 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)
fun setSymbologies(symbologies: Set<Symbology>): BarcodeDefinitionBuilder
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)
fun setPreset(preset: ScanComponentBarcodePreset?): BarcodeDefinitionBuilder
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)
fun setLocation(location: Quadrilateral?): BarcodeDefinitionBuilder
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)
fun setHiddenProperties(hiddenProperties: String): BarcodeDefinitionBuilder
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)
fun setValueRegexes(valueRegexes: List<String>): BarcodeDefinitionBuilder
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)
fun setAnchorRegexes(anchorRegexes: List<String>): BarcodeDefinitionBuilder
Added in version 8.0.0
Sets the anchor regexes for the barcode. Returns the builder for configuring the rest of the properties.
- build()
fun build(): BarcodeDefinition
Added in version 8.0.0
Builds the BarcodeDefinition object.