BarcodeCount class

Barcode Count is a data capture mode that implements MatrixScan Count in use cases that include a counting workflow such as receiving, inventory count, and stock taking. MatrixScan Count is an out-of-the-box scan and count solution that enables faster and more accurate counting of multiple items at once.

Learn more on how to use Barcode Count in our Get Started guide.

Added in version 6.17.0

Constructors

BarcodeCount(BarcodeCountSettings settings)
Constructs a new BarcodeCount instance with the provided settings.

Properties

context → DataCaptureContext?
Implemented from DataCaptureMode. See DataCaptureMode.context.
no setter
feedback ↔ BarcodeCountFeedback
Instance of BarcodeCountFeedback that is used by the barcode scanner to notify users about Success and Failure events.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
isEnabled ↔ bool
Implemented from DataCaptureMode. See DataCaptureMode.isEnabled.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAdaptiveRecognitionServiceListener(AdaptiveRecognitionServiceListener listener) → void
Adds the listener to observe the outcome of adaptive recognition dispatches performed by this mode’s adaptive recognition service. See AdaptiveRecognitionServiceListener.
addListener(BarcodeCountListener listener) → void
Adds the listener to observe this barcode capture instance.
applySettings(BarcodeCountSettings settings) → Future<void>
Asynchronously applies the new settings to the barcode scanner, then calls whenDone. If the scanner is currently running, the task will complete when the next frame is processed, and will use the new settings for that frame. If the scanner is currently not running, the task will complete as soon as the settings have been stored and won’t wait until the next frame is going to be processed.
clearAdditionalBarcodes() → Future<void>
Clears the additional barcodes.
didChange() → Future<void>
endScanningPhase() → Future<void>
Disables this mode and switches off the current FrameSource.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAdaptiveRecognitionServiceListener(AdaptiveRecognitionServiceListener listener) → void
Removes a previously added adaptive recognition service listener from this barcode count instance.
removeListener(BarcodeCountListener listener) → void
Removes a previously added listener from this barcode count instance.
reset() → Future<void>
Resets the session, effectively clearing the history of tracked and unscanned barcodes.
setAdditionalBarcodes(List<Barcode> barcodes) → Future<void>
Use this method to inject barcodes that will be used as partial scanning result. BarcodeCountView will consider these barcodes when updating the UI. Note that, if scanning against a list where multiple instances of the same barcode are expected, each entry in this list will only count as 1 towards the expected total. In order to specify that several instances of a barcode were scanned in previous sessions, this list should include one entry per each of those instances.
setBarcodeCountCaptureList(BarcodeCountCaptureList list) → Future<void>
Enables “Scanning against a list” mode, which provides additional functionality when looking for a specific set of Barcodes.
startScanningPhase() → Future<void>
Starts the capture session. If the BarcodeCount.isEnabled is false, this call has no effect.
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

createRecommendedCameraSettings() → CameraSettings
Returns the recommended camera settings for use with barcode count.