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
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.
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