Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ailiwean authored Aug 24, 2020
1 parent 1d12712 commit f06f22e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@


```
implementation 'com.github.ailiwean:NBZxing:0.0.22'
implementation 'com.github.ailiwean:NBZxing:0.0.21'
//若需要使用灰度算法增强库,再次添加以下依赖//纯java超轻量
implementation 'com.github.ailiwean:NBZxing-Scale:0.0.2'
implementation 'com.github.ailiwean:NBZxing-Scale:0.0.1'
```
[NBZxing-Scale](https://github.com/ailiwean/NBZxing-Scale "NBZxing-Scale")

Expand All @@ -24,7 +24,7 @@
**step1. 自定义一个View继承NBZxingView**

```
class CusZxingView @JvmOverloads constructor(context: Context, attributeSet: AttributeSet? = null, def: Int = 0) : ZxingCameraView(context, attributeSet, def) {
class CusZxingView @JvmOverloads constructor(context: Context, attributeSet: AttributeSet? = null, def: Int = 0) : NBZxingView(context, attributeSet, def) {
/***
* 扫码结果回调
Expand All @@ -33,6 +33,7 @@ class CusZxingView @JvmOverloads constructor(context: Context, attributeSet: Att
Toast.makeText(context, content, Toast.LENGTH_SHORT).show()
}
/***
* 返回扫码类型
* 1 ScanTypeConfig.HIGH_FREQUENCY 高频率格式(默认)
Expand Down Expand Up @@ -88,7 +89,7 @@ class CusZxingView @JvmOverloads constructor(context: Context, attributeSet: Att


#### 图片资源解析
在ZxingCameraView的子类中调用
在NBZxingView的子类中调用

```
parseFile(filePath: String);
Expand All @@ -113,6 +114,7 @@ protected open fun resultBackFile(content: String) {
- 安装密码1234

###### 😊 <如果觉得还凑合不错,强烈请求来上一个star 。 开源不易,多多鼓励,感谢!> 😊

----

#### 测试二维码
Expand Down

0 comments on commit f06f22e

Please sign in to comment.