Barcode Pick View

Defined in namespace Scandit.DataCapture.Barcode.Pick.UI

Note

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

FinishButtonTappedEventArgs
class FinishButtonTappedEventArgs : EventArgs

Added in version 6.24.0

Provides data for the BarcodePickView.FinishButtonTapped event.

FinishButtonTappedEventArgs()
FinishButtonTappedEventArgs(BarcodePickView view)

Added in version 6.24.0

View
BarcodePickView View { get; }

Added in version 6.24.0

BarcodePickView
class BarcodePickView : RelativeLayout

Added in version 6.24.0

BarcodePickView.

Create()
static BarcodePickView Create(ViewGroup parentView, DataCaptureContext dataCaptureContext, BarcodePick mode, BarcodePickViewSettings settings)

Added in version 6.24.0

Initializes a BarcodePickView

Create()
static BarcodePickView Create(ViewGroup parentView, DataCaptureContext dataCaptureContext, BarcodePick mode, BarcodePickViewSettings settings, CameraSettings cameraSettings)

Added in version 6.24.0

Initializes a BarcodePickView

Start()
void Start()

Added in version 6.24.0

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

For instance, it can be called when creating the BarcodePickView, so that as soon as the fragment or activity is resumed, the scan flow will start.

Note

Scanning will pause and resume automatically when OnPause() and OnResume() respectively are called.

Stop()
void Stop()

Added in version 6.24.0

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

Freeze()
void Freeze()

Added in version 6.24.0

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

AddActionListener()
void AddActionListener(IBarcodePickActionListener listener)

Added in version 6.24.0

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

OnResume()
void OnResume()

Added in version 6.24.0

Notifies the barcode pick view that the container has resumed.

This method should be called in a Fragment or Activity’s onResume method to allow starting the scanning process or to restore a state previously paused by OnPause().

OnPause()
void OnPause()

Added in version 6.24.0

Notifies the barcode pick view that the container has paused.

This method should be called in a Fragment or Activity’s onPause method to pause the scanning flow. The scan state will then be restored when OnResume() in called.

OnDestroy()
void OnDestroy()

Added in version 6.24.0

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

This method should be called in a Fragment’s onDestroyView or an Activity’s onDestroy methods to release the scanning objects.

RemoveActionListener()
void RemoveActionListener(IBarcodePickActionListener listener)

Added in version 6.24.0

Removes a IBarcodePickActionListener.

AddListener()
void AddListener(IBarcodePickViewListener listener)

Added in version 6.24.0

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

RemoveListener()
void RemoveListener(IBarcodePickViewListener listener)

Added in version 6.24.0

Removes a IBarcodePickViewListener.

HardwareTriggerSupported
static bool HardwareTriggerSupported { get; }

Added in version 6.24.0

Returns whether the device supports listening for hardware button events. This is true for devices with api >= 28.

FinishButtonTapped
event EventHandler<FinishButtonTappedEventArgs> FinishButtonTapped

Added in version 6.24.0

Occurs when the finish button is tapped from the view. Called from the main thread.