Expiry Date Text
Defined in package com.scandit.datacapture.label.capture
- ExpiryDateText
class ExpiryDateText : TextField
Added in version 6.21.0
A specialized text field for capturing expiry dates. This predefined field type is optimized for recognizing date formats commonly found on product labels, packaging, and documents.
The field can be configured with specific date formats using LabelDateFormat to ensure proper parsing of various date representations (MM/dd/yyyy, dd.MM.yyyy, etc.).
Use the builder pattern with ExpiryDateTextBuilder for convenient configuration.
- valueRegexes
val valueRegexes: List<String>
Added in version 8.0.0
The regexes that identify the target string in the scanned content.
- isOptional
val isOptional:
BooleanAdded in version 6.21.0
Whether the field is optional or mandatory. This is helpful when certain fields may not be present on every scan.
- numberOfMandatoryInstances
val numberOfMandatoryInstances: Int?
Added in version 7.6.0
The minimum number of instances of this field that must be captured for the label to be considered complete. This is useful for fields that may appear multiple times on a label, such as multiple serial numbers or repeated information.
- anchorRegexes
val anchorRegexes: List<String>
Added in version 8.0.0
Used to specify keywords or phrases that help identify the context of the field. This is particularly useful when the label contains multiple fields that could match the same regex (e.g., when both packaging and expiry dates are present).
- labelDateFormat
var labelDateFormat: LabelDateFormat?
Added in version 7.1.0
Used to get and set the LabelDateFormat used to parse dates.