* 更新CameraX至v1.0.0-rc03

* 优化一些默认配置
This commit is contained in:
Jenly
2021-03-26 15:03:30 +08:00
parent a41daf4123
commit 602b853a26
12 changed files with 85 additions and 53 deletions

View File

@@ -97,7 +97,16 @@ public class CustomCaptureActivity extends CaptureActivity {
if(isContinuousScan){
showToast(result.getText());
}
//如果支持连扫返回true即可
/*
* 因为setAnalyzeImage方法能动态控制是否继续分析图像。
*
* 1. 因为分析图像默认为true如果想支持连扫返回true即可。
* 当连扫的处理逻辑比较复杂时请在处理逻辑前调用getCameraScan().setAnalyzeImage(false)
* 来停止分析图像等逻辑处理完后再调用getCameraScan().setAnalyzeImage(true)来继续分析图像。
*
* 2. 如果只是想拦截扫码结果回调自己处理逻辑,但并不想继续分析图像(即不想连扫),可通过
* 调用getCameraScan().setAnalyzeImage(false)来停止分析图像。
*/
return isContinuousScan;
}