DownloadFileProgressListener, okhttp3.Interceptorpublic abstract class DownloadFileInterceptor extends Object implements okhttp3.Interceptor, DownloadFileProgressListener
| 修饰符和类型 | 类 | 说明 |
|---|---|---|
static class |
DownloadFileInterceptor.DownloadFileProgressResponseBody |
| 构造器 | 说明 |
|---|---|
DownloadFileInterceptor() |
| 修饰符和类型 | 方法 | 说明 |
|---|---|---|
okhttp3.Response |
intercept(okhttp3.Interceptor.Chain chain) |
|
abstract void |
updateProgress(long downloadLenth,
long totalLength,
boolean isFinish) |
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain)
throws IOException
intercept 在接口中 okhttp3.InterceptorIOExceptionpublic abstract void updateProgress(long downloadLenth,
long totalLength,
boolean isFinish)
updateProgress 在接口中 DownloadFileProgressListenerCopyright © 2019. All rights reserved.