Barcode Pick View

Defined in library scandit_datacapture_barcode_pick_ui

Note

Barcode Pick is still in beta and may change in future versions of Scandit Data Capture SDK.

BarcodePickViewUiListener
abstract class BarcodePickViewUiListener

Added in version 6.22.0

didTapFinishButton(view)
void didTapFinishButton(BarcodePickView view)

Added in version 6.22.0

Callback method that can be used to define an action that should be performed when the finish button is tapped from the view. Called from the main thread.

BarcodePickView
class BarcodePickView : StatefulWidget

Added in version 6.22.0

BarcodePickView.

BarcodePickView.forModeWithViewSettings(dataCaptureContext, barcodePick, viewSettings)
factory BarcodePickView.forModeWithViewSettings(
        DataCaptureContext dataCaptureContext,
        BarcodePick barcodePick,
        BarcodePickViewSettings viewSettings)

Added in version 6.22.0

Initializes a BarcodePickView

BarcodePickView.forModeWithViewSettingsAndCameraSettings(dataCaptureContext, barcodePick, viewSettings, cameraSettings)
factory BarcodePickView.forModeWithViewSettingsAndCameraSettings(
        DataCaptureContext dataCaptureContext,
        BarcodePick barcodePick,
        BarcodePickViewSettings viewSettings,
        CameraSettings cameraSettings)

Added in version 6.22.0

Initializes a BarcodePickView

start()
Future<void> start()

Added in version 6.22.0

Starts the camera and the scanning process. Can be stopped by calling stop().

stop()
Future<void> stop()

Added in version 6.24.0

Pauses the camera and the scanning process. It can be started again using start().

freeze()
Future<void> freeze()

Added in version 6.22.0

Freezes the camera and the highlights position to make the selection easier. The scanning can be started again using start().

addActionListener(listener)
void addActionListener(BarcodePickActionListener listener)

Added in version 6.22.0

Add a BarcodePickActionListener to the mode. User actions will be notified to the listener.

resume()
Future<void> resume()

Added in version 6.24.0

Notifies the barcode pick view that the container has resumed.

For instance, this method could be called when the AppLifecycleState state changes to resumed.

pause()
Future<void> pause()

Added in version 6.24.0

Notifies the barcode pick view that the container has paused.

For instance, this method could be called when the AppLifecycleState state changes to inactive, hidden or paused.

release()
Future<void> release()

Added in version 6.22.0

Stops the camera and the scanning process. After this call the view should not be used anymore.

For instance, this method could be called in the Widget’s dispose function to release the scanning objects.

removeActionListener(listener)
void removeActionListener(BarcodePickActionListener listener)

Added in version 6.22.0

Removes a BarcodePickActionListener.

uiListener
BarcodePickViewUiListener? uiListener

Added in version 6.22.0

Sets the listener which is called whenever the finish button is tapped from the view.

addListener(listener)
void addListener(BarcodePickViewListener listener)

Added in version 6.22.0

Add a BarcodePickViewListener to the mode. User actions will be notified to the listener.

removeListener(listener)
void removeListener(BarcodePickViewListener listener)

Added in version 6.22.0

Removes a BarcodePickViewListener.

createState()
State<StatefulWidget> createState()

Added in version 6.22.0

Implemented from StatefulWidget. Called by the Flutter framework.