Closed Agmcz closed 1 year ago
I'm trying to qr scan single, but app closes!!!
mCameraScan.setOnScanResultCallback(new CameraScan.OnScanResultCallback() { @OverRide public boolean onScanResultCallback(Result result) { // some code return false; } });
If you need to process the scan callback result, please intercept the callback and return true.
See OnScanResultCallback and scanResultCallback for details.
See CustomCaptureActivity for sample code.
Thank you for this hints, i used the following code to single scan
`// rescanning isContinuousScan = true; mCameraScan.setVibrate(true); mCameraScan.setPlayBeep(true);
mCameraScan.setOnScanResultCallback(new CameraScan.OnScanResultCallback() { @Override public boolean onScanResultCallback(Result result) { if (isContinuousScan) { isContinuousScan = false; mCameraScan.setVibrate(false); mCameraScan.setPlayBeep(false); // some code } return true; } });`
I'm trying to qr scan single, but app closes!!!
mCameraScan.setOnScanResultCallback(new CameraScan.OnScanResultCallback() { @Override public boolean onScanResultCallback(Result result) { // some code return false; } });