Interface IBarcodeCounterView
-
- All Implemented Interfaces:
public interface IBarcodeCounterViewA component which allows to quickly integrate a Barcode scanning feature into your application. It wraps BarcodeCounterFrameHandler, io.scanbot.sdk.ui.camera.IScanbotCameraView, io.scanbot.sdk.camera.IFinderView providing an interface allowing to control appearance and behavior of the component.
To start using it you need to add BarcodeScanAndCountView into your layout and the call two methods initCamera and initScanningBehavior (see corresponding docs).
If you use a legacy camera (non CameraX - see CameraUiSettings) it is also required to call IBarcodeCounterViewController.onResume on the viewController in Activity onResume and IBarcodeCounterViewController.onPause on the viewController in Activity onPause
-
-
Method Summary
Modifier and Type Method Description abstract UnitinitCamera()This must be called in the onCreate of the Activity abstract UnitinitScanningBehavior(BarcodeScanner barcodeScanner, IBarcodeScanCountViewCallback callback)This should be called as soon as you have an instance of the Document scanner. abstract IBarcodeScanCountViewControllergetViewController()Use this object to control the state or the behavior of the IBarcodeCounterView abstract IBarcodeScanCountViewCameraConfigurationgetCameraConfiguration()Use this object to control configuration parameters of the Camera inside abstract IBarcodeScanCountSelectionOverlayControllergetCounterOverlayController()Use this object to control the state or the behavior of the selection overlay layer -
-
Method Detail
-
initCamera
abstract Unit initCamera()
This must be called in the onCreate of the Activity
-
initScanningBehavior
abstract Unit initScanningBehavior(BarcodeScanner barcodeScanner, IBarcodeScanCountViewCallback callback)
This should be called as soon as you have an instance of the Document scanner. It is recommended to call it in onCreate of the Activity
-
getViewController
abstract IBarcodeScanCountViewController getViewController()
Use this object to control the state or the behavior of the IBarcodeCounterView
-
getCameraConfiguration
abstract IBarcodeScanCountViewCameraConfiguration getCameraConfiguration()
Use this object to control configuration parameters of the Camera inside
-
getCounterOverlayController
abstract IBarcodeScanCountSelectionOverlayController getCounterOverlayController()
Use this object to control the state or the behavior of the selection overlay layer
-
-
-
-