Barcode Capture Overlay

Defined in library scandit_datacapture_barcode_ui

BarcodeCaptureOverlayStyle

Added in version 6.10.0

The style of the BarcodeCaptureOverlay.

Deprecated since version 6.26: This enum is deprecated and will be removed in the future.

legacy

Added in version 6.10.0

Legacy style from versions before 6.10.

frame

Added in version 6.10.0

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

BarcodeCaptureOverlay
class BarcodeCaptureOverlay : DataCaptureOverlay

Added in version 6.7.0

Overlay for the BarcodeCapture capture mode that displays recognized barcodes on top of a data capture view.

The appearance of the visualized barcodes can be configured or turned off completely through the brush property.

BarcodeCaptureOverlay.withBarcodeCaptureForView(barcodeCapture, view)
BarcodeCaptureOverlay.withBarcodeCaptureForView(
        BarcodeCapture barcodeCapture,
        DataCaptureView? view)

Added in version 6.7.0

Constructs a new barcode capture overlay for the provided barcode capture instance. When passing a non-null view instance, the overlay is automatically added to the view.

BarcodeCaptureOverlay.withBarcodeCaptureForViewWithStyle(barcodeCapture, view, style)
BarcodeCaptureOverlay.withBarcodeCaptureForViewWithStyle(
        BarcodeCapture barcodeCapture,
        DataCaptureView? view,
        BarcodeCaptureOverlayStyle style)

Added in version 6.10.0

Constructs a new barcode capture overlay for the provided barcode capture instance and style. When passing a non-null view instance, the overlay is automatically added to the view.

BarcodeCaptureOverlay.withBarcodeCapture(barcodeCapture)
BarcodeCaptureOverlay.withBarcodeCapture(BarcodeCapture barcodeCapture)

Added in version 6.7.0

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

viewfinder
Viewfinder? viewfinder

Added in version 6.7.0

Set the viewfinder. By default, the viewfinder is null. Set this to an instance of Viewfinder if you want to draw a viewfinder.

brush
Brush brush

Added in version 6.7.0

The brush used for visualizing a recognized barcode in the UI. To turn off drawing of locations, set the brush to use both a transparent fill and stroke color. By default, the brush has a transparent fill color, a “Scandit”-blue stroke color, and a stroke width of 1.

view
DataCaptureView? view

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

defaultBrush
static Brush get defaultBrush

Added in version 6.7.0

Returns the default brush used by the overlay.

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.

shouldShowScanAreaGuides
bool shouldShowScanAreaGuides

Added in version 6.7.0

Whether to show scan area guides on top of the preview. This property is useful during development to visualize the current scan areas on screen. It is not meant to be used for production. By default this property is false.

style
final BarcodeCaptureOverlayStyle style

Added in version 6.10.0

The overlay style. Defaults to Legacy.