Update README

This commit is contained in:
Jenly
2023-03-19 12:59:50 +08:00
parent 9b73dc3a23
commit 863f1ab1b4
2 changed files with 2 additions and 0 deletions

View File

@@ -205,6 +205,7 @@ decodeConfig.setHints(DecodeFormatManager.QR_CODE_HINTS)//如果只有识别二
// 在启动预览之前,设置分析器,只识别二维码
getCameraScan()
.setCameraConfig(new AspectRatioCameraConfig(this))//设置相机配置,使用 AspectRatioCameraConfig
.setVibrate(true)//设置是否震动默认为false
.setAnalyzer(new MultiFormatAnalyzer(decodeConfig));//设置分析器,如果内置实现的一些分析器不满足您的需求,你也可以自定义去实现
```

View File

@@ -21,6 +21,7 @@
<enum name="none" value="0"/>
<enum name="line" value="1"/>
<enum name="grid" value="2"/>
<enum name="image" value="3"/>
</attr>
<attr name="cornerRectWidth" format="dimension"/>
<attr name="cornerRectHeight" format="dimension"/>