BarcodeSelection class

Data capture mode that implements barcode selection.

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

Added in version 6.10.0

Constructors

BarcodeSelection(BarcodeSelectionSettings settings)
Constructs a new BarcodeSelection instance with the provided settings.

Properties

context → DataCaptureContext?
Implemented from DataCaptureMode. See DataCaptureMode.context.
no setter
feedback ↔ BarcodeSelectionFeedback
Instance of BarcodeSelectionFeedback that is used by barcode selection to notify users about the selection of a barcode.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
isEnabled ↔ bool
Implemented from DataCaptureMode. See DataCaptureMode.isEnabled.
getter/setter pair
pointOfInterest ↔ PointWithUnit?
The point of interest overwriting the point of interest of the data capture view (DataCaptureView.pointOfInterest). By default, this overwriting point of interest is not set and the one from the data capture view is used.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(BarcodeSelectionListener listener) → void
Adds the listener to this barcode selection instance.
applySettings(BarcodeSelectionSettings settings) → Future<void>
Asynchronously applies the new settings to the barcode selection. If the barcode selection is currently running, the task will complete when the next frame is processed, and will use the new settings for that frame. If the barcode selection 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.
freezeCamera() → Future<void>
Freeze the camera.
getBarcodeSelectionLicenseInfo() → Future<BarcodeSelectionLicenseInfo?>
Async getter for the barcode-selection license info. Returns null until the mode has been added to a DataCaptureContext with a license that covers barcode selection.
increaseCountForBarcodes(List<Barcode> barcodes) → Future<void>
Increments the count of how many times the given barcodes have been selected.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(BarcodeSelectionListener listener) → void
Removes a previously added listener from this barcode selection instance.
reset() → Future<void>
Asynchronously resets the barcode selection session, effectively clearing the history of selected codes.
selectAimedBarcode() → Future<void>
Select the barcode being aimed at. Only use this with manual aimer selection.
selectUnselectedBarcodes() → Future<void>
Select all the unselected barcodes that are being tracked in current the barcode selection session. This action is dispatched asynchronously and may happen on the next frame.
setSelectBarcodeEnabled(Barcode barcode, bool enabled) → Future<void>
Enables or disables the selection of a barcode.
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited
unfreezeCamera() → Future<void>
Unfreeze the camera.
unselectBarcodes(List<Barcode> barcodes) → Future<void>
Removes the barcodes from the list of selected barcodes.

Operators

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

Static Methods

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