Credntia / MVBarcodeReader

A Barcode scanner library for Android. Uses the Google Play Services' mobile vision api for barcode detection.
Apache License 2.0
68 stars 22 forks source link

Don't stop scanning when a barcode is found SINGLE_AUTO #21

Closed daniel-stoneuk closed 6 years ago

daniel-stoneuk commented 6 years ago

I'd like to validate the scanned barcode to see if it's data adheres to a specific format - if not, continue scanning. Currently the fragment stops scanning.

Please may you either a) add a method to restart the camera preview b) don't stop the camera preview

Thanks, Dan

iamMehedi commented 6 years ago

just calling initiateCamera() when you need to start scanning again should work.You can extend the scanner fragment and override onBarcodeDetected(final Barcode barcode) to validate.