Barcode Count Session Snapshot

Defined under the namespace 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
get recognizedBarcodes(): Barcode[]

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.

On these platforms the list comes from the session’s own serialization, which does not include cleared barcodes — matching what BarcodeCountSession already exposes here.

additionalBarcodes
get additionalBarcodes(): Barcode[]

Added in version 8.7.0

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

recognizedClusters
get recognizedClusters(): Cluster[]

Added in version 8.7.0

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

frameSequenceId
get frameSequenceId(): number

Added in version 8.7.0

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