Open tahlilgar opened 4 years ago
Based on Library document <_code in kotlin_> :
mCodeScanner!!.scanMode = ScanMode.CONTINUOUS mCodeScanner!!.decodeCallback = DecodeCallback { result: Result -> val res = result.text.toLowerCase() if (res.startsWith("example")) { toastThis(res) } }
I want to scan the barcode more than one time but this code just worked for the first scan. then I should close and open again scan activity to scan the second barcode and more...
my code in on create activity: mCodeScanner.setDecodeCallback(new DecodeCallback() { @Override public void onDecoded(@NonNull final Result result) {