Barcode Count Session

Defined in framework ScanditBarcodeCapture

SDCBarcodeCountSession
@interface SDCBarcodeCountSession : NSObject

Added in version 6.14.0

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

Important

The count session should only be accessed from within barcodeCount:didScanInSession: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 recognizedBarcodes should be kept and traversed outside of barcodeCount:didScanInSession: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.

recognizedBarcodes
@property (nonatomic, nonnull, readonly) NSDictionary<NSNumber *, SDCTrackedBarcode *> *recognizedBarcodes

Added in version 6.14.0

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

frameSequenceId
@property (nonatomic, readonly) NSInteger frameSequenceId

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

- reset
- (void)reset

Added in version 6.14.0

Resets the barcode count session, effectively clearing the history of recognized barcodes. This function should only be called inside the listeners’ callback.

additionalBarcodes
@property (nonatomic, nonnull, readonly) NSArray<SDCBarcode *> *additionalBarcodes

Added in version 6.16.0

The array of additional barcodes injected with SDCBarcodeCount.setAdditionalBarcodes:.