Note
This API is still in beta and may change in future versions of Scandit Data Capture SDK.
Text Definition Builder
Defined in package com.scandit.datacapture.usi.capture.component.text
- TextDefinitionBuilder
class TextDefinitionBuilderAdded in version 8.0.0
A fluent builder class for creating TextDefinition 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 TextDefinitionBuilder setOptional(
booleanoptional)Added in version 8.0.0
Sets whether the text component is optional in the item definition. Returns the builder for configuring the rest of the properties.
- setSemantics(semantics)
@NonNull TextDefinitionBuilder setSemantics(ScanComponentTextSemanticType semantics)
Added in version 8.0.0
Sets a predefined semantics type for the text. Returns the builder for configuring the rest of the properties.
- setLocation(location)
@NonNull TextDefinitionBuilder setLocation(@Nullable Quadrilateral location)
Added in version 8.0.0
Sets an expected location for the text. Returns the builder for configuring the rest of the properties.
- setHiddenProperties(hiddenProperties)
@NonNull TextDefinitionBuilder 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 TextDefinitionBuilder setValueRegexes(@NonNull List<@NonNull String> valueRegexes)
Added in version 8.0.0
Sets the value regexes for the text. Returns the builder for configuring the rest of the properties.
- setAnchorRegexes(anchorRegexes)
@NonNull TextDefinitionBuilder setAnchorRegexes(@NonNull List<@NonNull String> anchorRegexes)
Added in version 8.0.0
Sets the anchor regexes for the text. Returns the builder for configuring the rest of the properties.
- build()
@NonNull TextDefinition build()
Added in version 8.0.0
Builds the TextDefinition object.