Barcode Pick

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

Note

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

BarcodePickAction

Added in version 6.24.0

An enumeration of possible actions.

NONE

Added in version 6.24.0

No action.

PICK

Added in version 6.24.0

Pick action.

UNPICK

Added in version 6.24.0

Unpick action.

BarcodePickSelectItemActionCallback
interface BarcodePickSelectItemActionCallback

Added in version 6.24.0

Callback that can be provided to BarcodePick.selectItemWithData() to be notified of the result.

onFinish(action)
void onFinish(BarcodePickAction action)

Added in version 6.24.0

The function that will be called when BarcodePick.selectItemWithData() has finished, providing the action that will happen.

BarcodePick
class BarcodePick

Added in version 6.19.0

Capture mode that implements barcode pick.

BarcodePick()
BarcodePick(@NonNull DataCaptureContext dataCaptureContext,
        @NonNull BarcodePickSettings settings,
        @NonNull BarcodePickProductProvider productProvider)

Added in version 6.19.0

Construct a new BarcodePick instance:

createRecommendedCameraSettings()
static @NonNull CameraSettings createRecommendedCameraSettings()

Added in version 6.19.0

Returns the recommended camera settings to use with the mode.

addScanningListener(listener)
void addScanningListener(@NonNull BarcodePickScanningListener listener)

Added in version 6.21.0

Adds a scanning listener to this BarcodePick instance.

removeScanningListener(listener)
void removeScanningListener(@NonNull BarcodePickScanningListener listener)

Added in version 6.21.0

Removes the scanning listener from this BarcodePick instance.

addListener(listener)
void addListener(@NonNull BarcodePickListener listener)

Added in version 6.23.0

Adds a listener to this BarcodePick instance.

removeListener(listener)
void removeListener(@NonNull BarcodePickListener listener)

Added in version 6.23.0

Removes the listener from this BarcodePick instance.

selectItemWithData(data, callback)
void selectItemWithData(@NonNull String data,
        @Nullable BarcodePickSelectItemActionCallback callback)

Added in version 6.24.0

Selects the item with the given data. The completion callback specifies the type of action that will be performed.

confirmActionForItemWithData(data)
void confirmActionForItemWithData(@NonNull String data)

Added in version 6.24.0

Confirms the action for the item with the given data. Useful as an alternative in scenarios where using such callbacks is not practical. No action is performed if the item is not currently selected.

cancelActionForItemWithData(data)
void cancelActionForItemWithData(@NonNull String data)

Added in version 6.24.0

Cancels the action for the item with the given data. Useful as an alternative in scenarios where using such callbacks is not practical. No action is performed if the item is not currently selected.