Barcode Pick View
Defined under the namespace Scandit.Datacapture.Barcode.Pick.Ui
- BarcodePickViewUiListener
interface BarcodePickViewUiListenerAdded in version 6.23.0
- didTapFinishButton(view)
didTapFinishButton(view: BarcodePickView):
voidAdded in version 6.23.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 BarcodePickViewAdded in version 6.22.0
BarcodePickView.
- connectToElement(element)
connectToElement(element: HTMLElement):
voidAdded in version 6.22.0
Connect the barcode pick view to a given HTML element, so it’s size and position can be mirrored.
- detachFromElement()
detachFromElement():
voidAdded in version 6.22.0
Detach the barcode pick view from the currently connected HTML element. This releases the HTML element and removes any listeners or resources related to it.
- start()
start(): Promise<
void>Added in version 6.22.0
Starts the camera and the scanning process. Can be stopped by calling stop().
- stop()
stop(): Promise<
void>Added in version 6.24.0
Pauses the camera and the scanning process. It can be started again using start().
- freeze()
freeze(): Promise<
void>Added in version 6.23.0
Freezes the camera and the highlights position to make the selection easier. The scanning can be started again using start().
- reset()
reset(): Promise<
void>Added in version 8.1.0
Reset the picking flow. This will clear all picked items and restore the initial state.
- addActionListener(listener)
addActionListener(listener: BarcodePickActionListener):
voidAdded in version 6.22.0
Add a BarcodePickActionListener to the mode. User actions will be notified to the listener.
- resume()
resume(): Promise<
void>Added in version 7.5.0
Notifies the barcode pick view that the container has resumed.
- pause()
pause(): Promise<
void>Added in version 7.5.0
Notifies the barcode pick view that the container has paused.
- release()
release():
voidAdded in version 6.23.0
Stops the camera and the scanning process. After this call the view should not be used anymore.
- removeActionListener(listener)
removeActionListener(listener: BarcodePickActionListener):
voidAdded in version 6.22.0
Removes a BarcodePickActionListener.
- uiListener
uiListener: BarcodePickViewUiListener | null
Added in version 6.23.0
Sets the listener which is called whenever the finish button is tapped from the view.
- addListener(listener)
addListener(listener: BarcodePickViewListener):
voidAdded in version 6.23.0
Add a BarcodePickViewListener to the mode. User actions will be notified to the listener.
- removeListener(listener)
removeListener(listener: BarcodePickViewListener):
voidAdded in version 6.23.0
Removes a BarcodePickViewListener.