Barcode Tracking
Defined in namespace Scandit.DataCapture.Barcode.Tracking.Capture
- BarcodeTracking
class BarcodeTracking : IDataCaptureMode
Added in version 6.2.0
Data capture mode that implements MatrixScan (barcode tracking).
Learn more on how to use barcode tracking in our Get Started guide.
This capture mode uses the barcode scanning and tracking capabilities. It cannot be used together with other capture modes that require the same capabilities, e.g. BarcodeCapture.
- Create()
static BarcodeTracking Create(DataCaptureContext context, BarcodeTrackingSettings settings)
Added in version 6.2.0
Constructs a new barcode tracking mode with the provided context and settings. When the context is not null, the capture mode is automatically added to the context.
- FromJson()
static BarcodeTracking FromJson(DataCaptureContext dataCaptureContext,
string
jsonData)Added in version 6.3.0
Constructs a new barcode tracking mode with the provided JSON serialization. The capture mode is automatically added to the context.
- Enabled
bool
Enabled { get;set; }Added in version 6.2.0
Implemented from IDataCaptureMode. See IDataCaptureMode.Enabled.
- ApplySettingsAsync()
Task ApplySettingsAsync(BarcodeTrackingSettings settings)
Added in version 6.2.0
Asynchronously applies the new settings to the barcode scanner. If the scanner is currently running, the task will complete when the next frame is processed, and will use the new settings for that frame. If the scanner is currently not running, the task will complete as soon as the settings have been stored and won’t wait until the next frame is going to be processed.
Same as ApplySettingsAsync() with the second argument set to null.
- AddListener()
void
AddListener(IBarcodeTrackingListener listener)Added in version 6.2.0
Adds the listener to observe this barcode capture instance.
In case the same listener is already observing this instance, calling this method will not add the listener again.
- RemoveListener()
void
RemoveListener(IBarcodeTrackingListener listener)Added in version 6.2.0
Removes a previously added listener from this barcode tracking instance.
In case the listener is not currently observing this instance, calling this method has no effect.
- RecommendedCameraSettings
static CameraSettings RecommendedCameraSettings { get; }
Added in version 6.2.0
Returns the recommended camera settings for use with barcode tracking.
- Context
DataCaptureContext Context { get; }
Added in version 6.2.0
Implemented from IDataCaptureMode. See IDataCaptureMode.Context.
- UpdateFromJson()
void
UpdateFromJson(string
jsonData)Added in version 6.3.0
Updates the mode according to a JSON serialization.
- SessionUpdated
event EventHandler<BarcodeTrackingEventArgs> SessionUpdated
Added in version 6.12.0
Occurs after barcode tracking has completed to process a frame.