Barcode Pick View

Defined in package com.scandit.datacapture.barcode.pick.ui

BarcodePickViewUiListener
interface BarcodePickViewUiListener

Added in version 6.20.0

onFinishButtonTapped(view)
void onFinishButtonTapped(@NonNull BarcodePickView view)

Added in version 6.20.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 : RelativeLayout

Added in version 6.19.0

BarcodePickView.

newInstance(parentView, dataCaptureContext, mode, settings)
static @NonNull BarcodePickView newInstance(@NonNull ViewGroup parentView,
        @Nullable DataCaptureContext dataCaptureContext,
        @NonNull BarcodePick mode,
        @NonNull BarcodePickViewSettings settings)

Added in version 6.19.0

Initializes a BarcodePickView

newInstance(parentView, dataCaptureContext, mode, settings, cameraSettings)
static @NonNull BarcodePickView newInstance(@NonNull ViewGroup parentView,
        @Nullable DataCaptureContext dataCaptureContext,
        @NonNull BarcodePick mode,
        @NonNull BarcodePickViewSettings settings,
        @NonNull CameraSettings cameraSettings)

Added in version 6.19.0

Initializes a BarcodePickView

start()
void start()

Added in version 6.19.0

Starts the camera and the scanning process.

For instance, this method could be called in a Fragment or Activity’s onResume method to start the scanning process.

release()
void release()

Added in version 6.19.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 a Fragment’s onDestroyView or an Activity’s onDestroy methods to release the scanning objects.

pause()
void pause()

Added in version 6.19.0

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

For instance, this method could be called in a Fragment or Activity’s onPause method to pause the scanning process.

freeze()
void freeze()

Added in version 6.20.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(@NonNull BarcodePickActionListener listener)

Added in version 6.19.0

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

removeActionListener(listener)
void removeActionListener(@NonNull BarcodePickActionListener listener)

Added in version 6.19.0

Removes a BarcodePickActionListener.

uiListener
@Nullable BarcodePickViewUiListener getUiListener()
void setUiListener(@Nullable BarcodePickViewUiListener value)

Added in version 6.20.0

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

listener
@Nullable BarcodePickViewListener getListener()
void setListener(@Nullable BarcodePickViewListener value)

Added in version 6.20.0

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