Barcode Pick

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

BarcodePickAction

Added in version 8.6.0

An enumeration of possible actions.

NONE

Added in version 8.6.0

No action.

PICK

Added in version 8.6.0

Pick action.

UNPICK

Added in version 8.6.0

Unpick action.

BarcodePickSelectItemActionCallback
interface BarcodePickSelectItemActionCallback

Added in version 8.6.0

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

onFinish(action)
fun onFinish(action: BarcodePickAction)

Added in version 8.6.0

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

BarcodePick
class BarcodePick

Added in version 8.6.0

Capture mode that implements barcode pick.

forContext(dataCaptureContext, settings, productProvider)
fun BarcodePick.forContext(dataCaptureContext: DataCaptureContext,
        settings: BarcodePickSettings,
        productProvider: BarcodePickAsyncMapperProductProvider): BarcodePick

Added in version 8.6.0

Constructs a new BarcodePick instance:

dataCaptureContext
val dataCaptureContext: DataCaptureContext

Added in version 8.6.0

The data capture context this mode is attached to. Unlike other modes, BarcodePick is constructed for a context and always holds a non-null reference.

recommendedCameraSettings()
fun BarcodePick.recommendedCameraSettings(): CameraSettings

Added in version 8.6.0

Returns the recommended camera settings to use with the mode.

addScanningListener(listener)
fun addScanningListener(listener: BarcodePickScanningListener)

Added in version 8.6.0

Adds a scanning listener to this BarcodePick instance.

removeScanningListener(listener)
fun removeScanningListener(listener: BarcodePickScanningListener)

Added in version 8.6.0

Removes the scanning listener from this BarcodePick instance.

addListener(listener)
fun addListener(listener: BarcodePickListener)

Added in version 8.6.0

Adds a listener to this BarcodePick instance.

removeListener(listener)
fun removeListener(listener: BarcodePickListener)

Added in version 8.6.0

Removes the listener from this BarcodePick instance.

selectItemWithData(data, callback)
fun selectItemWithData(data: String,
        callback: BarcodePickSelectItemActionCallback)

Added in version 8.6.0

confirmActionForItemWithData(data)
fun confirmActionForItemWithData(data: String)

Added in version 8.6.0

cancelActionForItemWithData(data)
fun cancelActionForItemWithData(data: String)

Added in version 8.6.0