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.barcode
- BarcodeDefinitionBuilder
class BarcodeDefinitionBuilderAdded in version 8.6.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.6.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.6.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.6.0
Sets a predefined preset for the component. Returns the builder for configuring the rest of the properties.
- build()
fun build(): BarcodeDefinition
Added in version 8.6.0
Builds the BarcodeDefinition object.