BarcodeCountSessionSnapshot class

An immutable copy of a BarcodeCountSession taken at the moment the user tapped the list or exit button.

Unlike BarcodeCountSession this snapshot carries no controller and cannot be reset or queried for a spatial map - it is a plain data container.

Immutable copy of a BarcodeCountSession captured at a specific point in time. Provided to button-tap delegate callbacks on BarcodeCountViewUiListener so the host app can inspect the session state on the main thread without violating the requirement that BarcodeCountSession only be accessed inside didScan().

The snapshot mirrors the public read-only state of the session at construction time. The SDK does not mutate the snapshot afterwards; subsequent scans do not affect any previously delivered snapshot.

Added in version 8.7.0

Constructors

BarcodeCountSessionSnapshot.fromJSON(Map<String, dynamic> json)
Creates a BarcodeCountSessionSnapshot from a decoded native session JSON object.
factory

Properties

additionalBarcodes → List<Barcode>
The additional barcodes injected with BarcodeCount.setAdditionalBarcodes at the time of the snapshot.
no setter
frameSequenceId → int
The identifier of the frame sequence at the time of the snapshot.
no setter
hashCode → int
The hash code for this object.
no setterinherited
recognizedBarcodes → List<Barcode>
A list of the barcodes that were recognized when the snapshot was taken. This mirrors BarcodeCountSession.recognizedBarcodes semantics — both currently tracked and cleared barcodes are included.
no setter
recognizedClusters → List<Cluster>
A list containing the clusters that were recognized when the snapshot was taken.
no setter
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