You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 8, 2024. It is now read-only.
Right now, calling barcodeView.start() or lifecycle.addObserver(barcodeView) starts the camera preview. Calling barcodeView.pause() does pause the barcode scanning, but not the preview. In order to actually pause the view, I have to call barcodeView.release(). This kinda works, but when starting the barcode view again, the onBarcodeListener gets called with the previous scanned value instantly.
Describe the solution you'd like
It would be great to have a way to stop the preview and barcode scanning altogether, and restart it later, without it firing the onBarcodeListener when resuming.
That would be possible through a pausePreview() and resumePreview method I suppose.