Note
This API is still in beta and may change in future versions of Scandit Data Capture SDK.
Text Definition
Defined in package com.scandit.datacapture.barcode
- TextDefinition
class TextDefinition : ScanComponentDefinition
Added in version 8.6.0
A class that holds the definition for a text expected to be scanned as part of a certain ScanItemDefinition.
- identifier
val identifier: TextIdentifier
Added in version 8.6.0
The unique identifier for this component.
- optional
var optional:
BooleanAdded in version 8.6.0
Whether the text is optional.
- semantics
var semantics: ScanComponentTextSemanticType
Added in version 8.6.0
A semantic type to be applied to the text definition.
- builder(identifier)
fun TextDefinition.builder(identifier: TextIdentifier): TextDefinitionBuilder
Added in version 8.6.0
Creates a builder object that can be used to fluently create a TextDefinition instance.