MultiFormatReader class
MultiFormatReader is a convenience class and the main entry point into the library for most uses. By default it attempts to decode all barcode formats that the library supports. Optionally, you can provide a hints object to request different behavior, for example only decoding QR codes.
@author Sean Owen @author dswitkin@google.com (Daniel Switkin)
- Implemented types
Constructors
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
-
decode(
BinaryBitmap image, [Map< DecodeHintType, Object> ? hints]) → Result -
Decode an image using the hints provided. Does not honor existing state.
override
-
decodeWithState(
BinaryBitmap image) → Result - Decode an image using the state set up by calling setHints() previously. Continuous scan clients will get a large speed increase by using this instead of decode().
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void -
Resets any internal state the implementation has after a decode, to prepare it
for reuse.
override
-
setHints(
Map< DecodeHintType, Object> ? hints) → void - This method adds state to the MultiFormatReader. By setting the hints once, subsequent calls to decodeWithState(image) can reuse the same set of readers without reallocating memory. This is important for performance in continuous scan clients.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited