Barcode Batch Basic Overlay

Defined in library scandit_datacapture_barcode_batch_ui

BarcodeBatchBasicOverlayStyle

Added in version 7.0.0

The style of the BarcodeBatchBasicOverlay

frame

Added in version 7.0.0

Style that draws the highlights as a rectangular frame and adds an animation for when a code newly appears.

dot

Added in version 7.0.0

Style that draws the highlights as a dot and adds an animation for when a code newly appears.

BarcodeBatchBasicOverlay
class BarcodeBatchBasicOverlay : DataCaptureOverlay

Added in version 7.0.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 BarcodeBatchBasicOverlay.withBarcodeBatchForView() 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 BarcodeBatchBasicOverlayListener or by calling setBrushForTrackedBarcode().

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

BarcodeBatchBasicOverlay.withBarcodeBatchForView(barcodeBatch, view)
factory BarcodeBatchBasicOverlay.withBarcodeBatchForView(
        BarcodeBatch barcodeBatch,
        DataCaptureView? view)

Added in version 7.0.0

Constructs a new Barcode Batch basic overlay for the Barcode Batch instance. The overlay is automatically added to the view.

BarcodeBatchBasicOverlay.withBarcodeBatchForViewWithStyle(barcodeBatch, view, style)
factory BarcodeBatchBasicOverlay.withBarcodeBatchForViewWithStyle(
        BarcodeBatch barcodeBatch,
        DataCaptureView? view,
        BarcodeBatchBasicOverlayStyle style)

Added in version 7.0.0

Constructs a new Barcode Batch basic overlay for the Barcode Batch instance with the specified style. The overlay is automatically added to the view.

BarcodeBatchBasicOverlay.withBarcodeBatch(barcodeBatch)
BarcodeBatchBasicOverlay.withBarcodeBatch(
        BarcodeBatch barcodeBatch)

Added in version 7.0.0

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

listener
BarcodeBatchBasicOverlayListener? listener

Added in version 7.0.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 Brush get defaultBrush

Added in version 7.0.0

The default brush applied to recognized tracked barcodes.

Deprecated since version 6.10.0: The defaultBrush of the overlay depends on the style used, there is no unique default brush. Use brush from a new overlay instance instead.

brush
Brush brush

Added in version 7.0.0

The brush applied to recognized tracked barcodes if BarcodeBatchBasicOverlayListener is not implemented.

By default the value is set to defaultBrush.

Setting this brush to null hides all tracked barcodes, unless setBrushForTrackedBarcode() is called.

view
DataCaptureView? view

Added in version 7.0.0

The view this data capture overlay is attached to. When the data capture overlay is currently not attached to a view, null is returned.

setBrushForTrackedBarcode(brush, trackedBarcode)
Future<void> setBrushForTrackedBarcode(Brush brush,
        TrackedBarcode trackedBarcode)

Added in version 7.0.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 BarcodeBatchBasicOverlayListener.didTapTrackedBarcode() callback will not be performed.

Setting a brush for a tracked barcode that is not part of the currently active session will be ignored.

Note

Using this function requires the MatrixScan AR add-on.

clearTrackedBarcodeBrushes()
Future<void> clearTrackedBarcodeBrushes()

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

When set to true, this overlay will visualize the active scan area used for BarcodeBatch. 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.

style
final BarcodeBatchBasicOverlayStyle style

Added in version 7.0.0

The overlay style. Defaults to Frame.