Barcode Tracking Session#

Defined in framework ScanditBarcodeCapture

SDCBarcodeTrackingSession#
@interface SDCBarcodeTrackingSession : NSObject

Added in version 6.0.0

The tracking session contains all the currently tracked barcodes and changes that were made specifically in the last processed frame.

Important

The tracking session should only be accessed from within barcodeTracking:didUpdate:frameData: 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 barcodeTracking:didUpdate:frameData:. 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#
@property (nonatomic, nonnull, readonly) NSArray<SDCTrackedBarcode *> *addedTrackedBarcodes

Added in version 6.0.0

Newly tracked barcodes.

removedTrackedBarcodes#
@property (nonatomic, nonnull, readonly) NSArray<NSNumber *> *removedTrackedBarcodes

Added in version 6.0.0

The identifiers of lost tracked barcodes that were removed.

updatedTrackedBarcodes#
@property (nonatomic, nonnull, readonly) NSArray<SDCTrackedBarcode *> *updatedTrackedBarcodes

Added in version 6.0.0

Updated tracked barcodes (new location).

trackedBarcodes#
@property (nonatomic, strong, readonly) NSDictionary<NSNumber *, SDCTrackedBarcode *> *trackedBarcodes

Added in version 6.0.0

A map from identifiers to tracked barcodes. It contains all currently tracked barcodes.

frameSequenceId#
@property (nonatomic, readonly) NSInteger frameSequenceId

Added in version 6.1.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.

JSONString#
@property (nonatomic, nonnull, readonly) NSString *JSONString

Added in version 6.2.0

Returns the JSON representation of the barcode tracking session.