Note
This API is still in beta and may change in future versions of Scandit Data Capture SDK.
Barcode Definition
Defined in package com.scandit.datacapture.barcode
- BarcodeDefinition
class BarcodeDefinition : ScanComponentDefinition
Added in version 8.6.0
A class that holds the definition for a barcode expected to be scanned as part of a certain ScanItemDefinition.
- identifier
val identifier: BarcodeIdentifier
Added in version 8.6.0
The unique identifier for this component.
- optional
var optional:
BooleanAdded in version 8.6.0
Whether the barcode is optional.
- symbologies
val symbologies: Set<Symbology>
Added in version 8.6.0
The list of symbologies that the barcode could be using.
- preset
var preset: ScanComponentBarcodePreset?
Added in version 8.6.0
A preset to be applied to the barcode definition.
- builder(identifier)
fun BarcodeDefinition.builder(identifier: BarcodeIdentifier): BarcodeDefinitionBuilder
Added in version 8.6.0
Creates a builder object that can be used to fluently create a BarcodeDefinition instance.