Skip to content

Commit

Permalink
doc: 更新开发文档
Browse files Browse the repository at this point in the history
  • Loading branch information
liangjingkanji committed Aug 13, 2023
1 parent 19ec17b commit 802ecf3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/converter.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ scopeNetLife {
}
```

假设不支持你需要的数据类型, 例如JSON/ProtoBuf/Bitmap等请[自定义转换器](/converter/#_3)
假设不支持你需要的数据类型, 例如JSON/ProtoBuf/Bitmap等请[自定义转换器](converter-customize.md#_3)
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Net是基于[OkHttp](https://github.com/square/okhttp)/协程的非侵入式框
如果多个网络请求之间毫无关联, 可以创建多个作用域来请求

!!! failure "强制初始化"
多进程或Xposed项目要求先[初始化](config.md/#_1)
多进程或Xposed项目要求先[初始化](config.md#_1)

并发请求错误示例

Expand Down
9 changes: 5 additions & 4 deletions docs/progress.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ scopeNetLife {
}
```

> 不仅是泛型为File才有效, 任何请求/响应都可以监听进度
!!! success "监听任何进度"
不仅是泛型为File才有效, 任何请求/响应都可以监听进度


## 监听器
Expand Down Expand Up @@ -80,8 +81,8 @@ ProgressListener的构造参数`interval`控制触发进度监听器的间隔时
| 函数 | 描述 |
|-|-|
| currentSize | 已完成大小, 例如: `120kB` 或者 `1.5MB` |
| totalSize | 全部大小, 同上 |
| remainSize | 剩余大小, 同上 |
| speedSize | 每秒下载大小, 同上 |
| totalSize | 全部大小 |
| remainSize | 剩余大小 |
| speedSize | 每秒下载大小 |
| useTime | 已使用时间, 格式为: `01:23:04` |
| remainTime | 估算的剩余时间, 格式为: `01:23:04` |
2 changes: 1 addition & 1 deletion docs/request.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ scopeNetLife {
如果JSON需要全局参数

1. 自定义`RequestBody`添加全局参数
2. 使用请求拦截器来添加全局参数 [RequestInterceptor](/interceptor/#_1)
2. 使用请求拦截器来添加全局参数 [RequestInterceptor](interceptor.md#_1)

## 自定义扩展函数

Expand Down

0 comments on commit 802ecf3

Please sign in to comment.