Barcode Tracking

Defined under the namespace Scandit.Datacapture.Barcode.Tracking

class BarcodeTracking : DataCaptureMode

Added in version 6.19.0

Data capture mode that implements MatrixScan (barcode tracking).

Learn more on how to use barcode tracking in our Get Started With MatrixScan 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.

setEnabled(enabled: boolean): Promise<void>

Added in version 6.19.0

isEnabled(): boolean

Added in version 6.19.0

forContext(context, settings)
static forContext(context: DataCaptureContext | null,
        settings: BarcodeTrackingSettings): Promise<BarcodeTracking>

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

applySettings(settings: BarcodeTrackingSettings): Promise<void>

Added in version 6.19.0

addListener(listener: BarcodeTrackingListener): void

Added in version 6.19.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(listener: BarcodeTrackingListener): void

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

static get recommendedCameraSettings(): CameraSettings

Added in version 6.19.0

Returns the recommended camera settings for use with barcode tracking.

get context(): DataCaptureContext | null

Added in version 6.19.0

Implemented from DataCaptureMode. See DataCaptureMode.context.