Barcode Check View

Defined in library scandit_datacapture_barcode_check_ui

BarcodeCheckViewUiListener
abstract class BarcodeCheckViewUiListener

Added in version 7.1.0

didTapHighlightForBarcode(barcodeCheck, barcode, highlight)
void didTapHighlightForBarcode(BarcodeCheck barcodeCheck,
        Barcode barcode,
        BarcodeCheckHighlight highlight)

Added in version 7.1.0

Callback method that is called when a barcode highlight is tapped in the view.

BarcodeCheckView
class BarcodeCheckView : StatefulWidget

Added in version 7.1.0

BarcodeCheck comes with a ready-to-use UI that allows highlighting barcodes and displaying additional information over them. The BarcodeCheckView integrates with any app in just a few lines of code.

BarcodeCheckView.forMode(dataCaptureContext, barcodeCheck)
factory BarcodeCheckView.forMode(DataCaptureContext dataCaptureContext,
        BarcodeCheck barcodeCheck)

Added in version 7.1.0

Creates a new BarcodeCheckView with the provided mode, viewSettings and cameraSettings.

BarcodeCheckView.forModeWithViewSettingsAndCameraSettings(dataCaptureContext, barcodeCheck, viewSettings, cameraSettings)
factory BarcodeCheckView.forModeWithViewSettingsAndCameraSettings(
        DataCaptureContext dataCaptureContext,
        BarcodeCheck barcodeCheck,
        BarcodeCheckViewSettings viewSettings,
        CameraSettings cameraSettings)

Added in version 7.1.0

Creates a new BarcodeCheckView with the provided mode, viewSettings and cameraSettings.

BarcodeCheckView.forModeWithViewSettings(dataCaptureContext, barcodeCheck, viewSettings)
factory BarcodeCheckView.forModeWithViewSettings(
        DataCaptureContext dataCaptureContext,
        BarcodeCheck barcodeCheck,
        BarcodeCheckViewSettings viewSettings)

Added in version 7.1.0

Creates a new BarcodeCheckView with the provided mode, viewSettings and default camera settings from BarcodeCheck.recommendedCameraSettings. This is equivalent of calling forMode() with null cameraSettings.

uiListener
BarcodeCheckViewUiListener? uiListener

Added in version 7.1.0

Sets the listener which is called whenever a barcode highlight is tapped in the view.

highlightProvider
BarcodeCheckHighlightProvider? highlightProvider

Added in version 7.1.0

Sets the provider which supplies highlight information for barcodes in the view. If null, a default provider is used, which returns a predefined highlight for each barcode.

annotationProvider
BarcodeCheckAnnotationProvider? annotationProvider

Added in version 7.1.0

Sets the provider which supplies annotation information for barcodes in the view. If null, no annotation will be displayed for any barcode.

shouldShowTorchControl
bool shouldShowTorchControl

Added in version 7.1.0

Indicates whether the torch control button should be shown to the user.

Default is false.

torchControlPosition
Anchor torchControlPosition

Added in version 7.1.0

Updates the position of the torch control button.

Default is Anchor.topLeft.

shouldShowZoomControl
bool shouldShowZoomControl

Added in version 7.1.0

Indicates whether the zoom control button should be shown to the user.

zoomControlPosition
Anchor zoomControlPosition

Added in version 7.1.0

Updates the position of the zoom control button.

Default is Anchor.bottomRight.

shouldShowCameraSwitchControl
bool shouldShowCameraSwitchControl

Added in version 7.1.0

Indicates whether the camera switch control button should be shown to the user.

cameraSwitchControlPosition
Anchor cameraSwitchControlPosition

Added in version 7.1.0

Updates the position of the camera switch control button.

Default is Anchor.topRight.

shouldShowMacroModeControl
bool shouldShowMacroModeControl

Added in version 7.1.0

Indicates whether the macro mode control button should be shown to the user.

Note

This property is only supported on iOS devices.

macroModeControlPosition
Anchor macroModeControlPosition

Added in version 7.1.0

Updates the position of the macro mode control button.

Default is Anchor.topRight.

Note

This property is only supported on iOS devices.

start()
Future<void> start()

Added in version 7.1.0

Starts the scanning process.

stop()
Future<void> stop()

Added in version 7.1.0

Stops the scanning process.

pause()
Future<void> pause()

Added in version 7.1.0

Pauses the scanning process.

reset()
Future<void> reset()

Added in version 7.2.0

Clears all highlights and annotations currently visible and calls highlightProvider and annotationProvider to supply new highlights and annotations.

createState()
State<StatefulWidget> createState()

Added in version 7.1.0

Implemented from StatefulWidget. Called by the Flutter framework.