Packing Date Text

Defined in framework ScanditLabelCapture

PackingDateText
open class PackingDateText : TextField

Added in version 6.21.0

A specialized text field for capturing packing dates from labels. This predefined field type is optimized for recognizing date formats commonly found on food packaging, pharmaceutical labels, and manufacturing date stamps.

The field can be configured with specific date formats using LabelDateFormat to ensure proper parsing of various date representations.

init
init(name: String)

Added in version 6.21.0

Builds a new instance of this class with the provided name.

field
open class func field(withName name: String) -> Self

Added in version 6.21.0

Builds a new instance of this class with the provided name.

dataTypePatterns
open var dataTypePatterns: Array<String>? { get, set }

Added in version 7.1.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 pattern (e.g., when both packaging and expiry dates are present).

labelDateFormat
open var labelDateFormat: LabelDateFormat? { get, set }

Added in version 7.1.0

Used to get and set the LabelDateFormat used to parse dates.