Barcode Count Session Snapshot

Defined in library scandit_datacapture_barcode_count

BarcodeCountSessionSnapshot
class BarcodeCountSessionSnapshot

Added in version 8.7.0

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.

recognizedBarcodes
List<Barcode> get recognizedBarcodes

Added in version 8.7.0

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.

additionalBarcodes
List<Barcode> get additionalBarcodes

Added in version 8.7.0

The additional barcodes injected with BarcodeCount.setAdditionalBarcodes() at the time of the snapshot.

recognizedClusters
List<Cluster> get recognizedClusters

Added in version 8.7.0

A list containing the clusters that were recognized when the snapshot was taken.

frameSequenceId
int get frameSequenceId

Added in version 8.7.0

The identifier of the frame sequence at the time of the snapshot.