Total Price Text
Defined in package com.scandit.datacapture.label
- TotalPriceText
class TotalPriceText : TextField
Added in version 6.21.0
A specialized text field for capturing total price information from labels. This predefined field type is optimized for recognizing price values typically found on retail product labels, receipts, and price tags.
Use the builder pattern with TotalPriceTextBuilder for convenient configuration.
- name
@NonNull String getName()
Added in version 6.21.0
Returns the name associated with this instance.
- patterns
@NonNull List<@NonNull String> getPatterns()
Added in version 6.21.0
The regex patterns that identify the target string in the scanned content.
- isOptional
booleanisOptional()Added 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
@Nullable Integer getNumberOfMandatoryInstances()
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.
- dataTypePatterns
@NonNull List<@NonNull String> getDataTypePatterns()
Added in version 7.3.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).