DecodeHintType<T> class

Encapsulates a type of hint that a caller may pass to a barcode reader to help it more quickly or accurately decode it. It is up to implementations to decide what, if anything, to do with the information that is supplied.

@author Sean Owen @author dswitkin@google.com (Daniel Switkin) @see Reader#decode(BinaryBitmap,java.util.Map)

Constructors

DecodeHintType()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

allowedEanExtensions DecodeHintType<List<int>>
Allowed extension lengths for EAN or UPC barcodes. Other formats will ignore this. Maps to an {@code int[]} of the allowed extension lengths, for example 2, 5, or 2, 5. If it is optional to have an extension, do not set this hint. If this is set, and a UPC or EAN barcode is found but an extension is not, then no result will be returned at all.
final
allowedLengths DecodeHintType<List<int>>
Allowed lengths of encoded data -- reject anything else. Maps to an {@code int[]}.
final
assumeCode39CheckDigit DecodeHintType<void>
Assume Code 39 codes employ a check digit. Doesn't matter what it maps to; use {@link Boolean#TRUE}.
final
assumeGs1 DecodeHintType<void>
Assume the barcode is being processed as a GS1 barcode, and modify behavior as needed. For example this affects FNC1 handling for Code 128 (aka GS1-128). Doesn't matter what it maps to; use {@link Boolean#TRUE}.
final
characterSet DecodeHintType<String>
Specifies what character encoding to use when decoding, where applicable (type String)
final
needResultPointCallback DecodeHintType<ResultPointCallback>
The caller needs to be notified via callback when a possible {@link ResultPoint} is found. Maps to a {@link ResultPointCallback}.
final
other DecodeHintType<Object>
Unspecified, application-specific hint. Maps to an unspecified {@link Object}.
final
possibleFormats DecodeHintType<List<BarcodeFormat>>
Image is known to be of one of a few possible formats. Maps to a {@link List} of {@link BarcodeFormat}s.
final
pureBarcode DecodeHintType<void>
Image is a pure monochrome image of a barcode. Doesn't matter what it maps to; use {@link Boolean#TRUE}.
final
returnCodabarStartEnd DecodeHintType<void>
If true, return the start and end digits in a Codabar barcode instead of stripping them. They are alpha, whereas the rest are numeric. By default, they are stripped, but this causes them to not be. Doesn't matter what it maps to; use {@link Boolean#TRUE}.
final
tryHarder DecodeHintType<void>
Spend more time to try to find a barcode; optimize for accuracy, not speed. Doesn't matter what it maps to; use {@link Boolean#TRUE}.
final