Barcode Pick View

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

BarcodePickViewUiListener
interface BarcodePickViewUiListener

Added in version 8.6.0

onFinishButtonTapped(view)
fun onFinishButtonTapped(view: BarcodePickView)

Added in version 8.6.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

Added in version 8.6.0

BarcodePickView.

start()
fun start()

Added in version 8.6.0

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

pause()
fun pause()

Added in version 8.6.0

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

stop()
fun stop()

Added in version 8.6.0

Tears the view down and releases its resources (camera, native view). The view is no longer usable afterwards; call this when the view is removed from the screen for good. For a temporary pause that can be resumed with start(), use pause() instead.

freeze()
fun freeze()

Added in version 8.6.0

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

reset()
fun reset()

Added in version 8.6.0

Resets the picking flow. This will clear all picked items and restore the initial state.

addActionListener(listener)
fun addActionListener(listener: BarcodePickActionListener)

Added in version 8.6.0

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

onResume()
fun onResume()

Added in version 8.6.0

Notifies the barcode pick view that the container has resumed.

Call this when the hosting screen is resumed, for the correct functioning of the BarcodePickView.

onPause()
fun onPause()

Added in version 8.6.0

Notifies the barcode pick view that the container has paused.

Call this when the hosting screen is paused, for the correct functioning of the BarcodePickView.

removeActionListener(listener)
fun removeActionListener(listener: BarcodePickActionListener)

Added in version 8.6.0

Removes a BarcodePickActionListener.

uiListener
var uiListener: BarcodePickViewUiListener?

Added in version 8.6.0

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

addListener(listener)
fun addListener(listener: BarcodePickViewListener)

Added in version 8.6.0

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

removeListener(listener)
fun removeListener(listener: BarcodePickViewListener)

Added in version 8.6.0

Removes a BarcodePickViewListener.

BarcodePickViewState
class BarcodePickViewState

Added in version 8.6.0

Compose Multiplatform state holder that drives the lifecycle of a BarcodePickView composable. Obtain one with rememberBarcodePickViewState() and call its methods to control scanning from your composition. See the KMP lifecycle notes on BarcodePickView for the native mapping.

BarcodePickViewState()
BarcodePickViewState()

Added in version 8.6.0

Creates a new state holder.

start()
fun start()

Added in version 8.6.0

Starts the scanning process.

pause()
fun pause()

Added in version 8.6.0

Pauses the camera and the scanning process. Resume it with start().

stop()
fun stop()

Added in version 8.6.0

Tears the view down and releases its resources. The view is no longer usable afterwards.

freeze()
fun freeze()

Added in version 8.6.0

Freezes the camera and the highlight positions to make selection easier. Resume with start().