Barcode Tracking Basic Overlay#

Defined in namespace Scandit.Datacapture.Barcode.Tracking.Ui

BarcodeTrackingBasicOverlay#
class BarcodeTrackingBasicOverlay : IDataCaptureOverlay

Added in version 6.2.0

An overlay for SDCDataCaptureView that shows a simple augmentation over each tracked barcode.

To display the augmentations, this overlay must be attached to a DataCaptureView. This may be done either by creating it with Create() with a non-null view parameter or by passing this overlay to DataCaptureView.AddOverlay().

A user of this class may configure the appearance of the augmentations by implementing IBarcodeTrackingBasicOverlayListener or by calling SetBrushForTrackedBarcode().

For additional information about using this overlay, refer to Get Started With MatrixScan.

Create()#
static BarcodeTrackingBasicOverlay Create(BarcodeTracking barcodeTracking, DataCaptureView view)

Added in version 6.2.0

Constructs a new barcode tracking basic overlay for the barcode tracking instance. The overlay is automatically added to the view.

Create()#
static BarcodeTrackingBasicOverlay Create(BarcodeTracking barcodeTracking)

Added in version 6.2.0

Constructs a new barcode tracking basic overlay for the barcode tracking instance. For the overlay to be displayed on screen, it must be added to a DataCaptureView.

FromJson()#
static BarcodeTrackingBasicOverlay FromJson(BarcodeTracking mode, string jsonData)

Added in version 6.2.0

Constructs a new barcode tracking basic overlay with the provided JSON serialization. See Serialization for details.

For the overlay to be displayed on screen, it must be added to a DataCaptureView.

Listener#
IBarcodeTrackingBasicOverlayListener Listener

Added in version 6.2.0

The listener which is called whenever a new TrackedBarcode is newly tracked or newly recognized.

Note

Using this listener requires the MatrixScan AR add-on.

DefaultBrush#
static Core.Ui.Brush DefaultBrush {readonly}

Added in version 6.4.0

The default brush applied to recognized tracked barcodes.

Brush#
Brush Brush

Added in version 6.4.0

The brush applied to recognized tracked barcodes if IBarcodeTrackingBasicOverlayListener is not implemented. By default the value is set to DefaultBrush. Setting this brush to null hides all tracked barcodes, unless SetBrushForTrackedBarcode() is called.

SetBrushForTrackedBarcode()#
void SetBrushForTrackedBarcode(TrackedBarcode trackedBarcode, Brush brush)

Added in version 6.2.0

The method can be called to change the visualization style of a tracked barcode. This method is thread-safe, it can be called from any thread. If the brush is null, then no visualization will be drawn for the tracked barcode. Additionally, tapping on the barcode will have no effect - the action defined by IBarcodeTrackingBasicOverlayListener.OnTrackedBarcodeTapped() callback will not be performed.

Note

Using this function requires the MatrixScan AR add-on.

ClearTrackedBarcodeBrushes()#
void ClearTrackedBarcodeBrushes()

Added in version 6.2.0

Clears all currently displayed visualizations for the tracked barcodes.

This only applies to the currently tracked barcodes, the visualizations for the new ones will still appear.

ShouldShowScanAreaGuides#
bool ShouldShowScanAreaGuides

Added in version 6.2.0

When set to true, this overlay will visualize the active scan area used for BarcodeTracking. This is useful to check margins defined on the DataCaptureView are set correctly. This property is meant for debugging during development and is not intended for use in production.

By default this property is false.

UpdateFromJson()#
void UpdateFromJson(string jsonData)

Added in version 6.2.0

Updates the overlay according to a JSON serialization. See Serialization for details.

SetProperty()#
void SetProperty(string name, object value)

Added in version 6.2.0

Set barcode tracking basic overlay property to the provided value. Use this method to set properties that are not yet part of a stable API. Properties set through this method may or may not be used or change in a future release.

GetProperty()#
object GetProperty(string name)

Added in version 6.2.0

Retrieves the value of a previously set barcode tracking basic overlay property. In case the property does not exist, null is returned.