Barcode Batch Session
Defined in library scandit_datacapture_barcode_batch
- BarcodeBatchSession
class BarcodeBatchSession
Added in version 7.0.0
The batch session contains all the currently tracked barcodes and changes that were made specifically in the last processed frame.
Important
The batch session should only be accessed from within didUpdateSession() to which it is provided as an argument. It is not safe to be accessed from anywhere else since it may be concurrently modified.
Specifically no reference to trackedBarcodes, addedTrackedBarcodes, removedTrackedBarcodes or updatedTrackedBarcodes should be kept and traversed outside of didUpdateSession(). Instead a copy of the lists should be made to avoid concurrent modification. The individual tracked barcodes can be referenced without copying as they are not further modified.
- addedTrackedBarcodes
List<TrackedBarcode> get addedTrackedBarcodes
Added in version 7.0.0
Newly tracked barcodes.
- removedTrackedBarcodes
List<int> get removedTrackedBarcodes
Added in version 7.0.0
The identifiers of lost tracked barcodes that were removed.
- updatedTrackedBarcodes
List<TrackedBarcode> get updatedTrackedBarcodes
Added in version 7.0.0
Updated tracked barcodes (new location).
- trackedBarcodes
Map<int, TrackedBarcode> get trackedBarcodes
Added in version 7.0.0
A map from identifiers to tracked barcodes. It contains all currently tracked barcodes.
- frameSequenceId
int get frameSequenceId
Added in version 7.0.0
The identifier of the current frame sequence.
Important
As long as there is no interruptions of frames coming from the camera, the frameSequenceId will stay the same.