public abstract class DownloadFileCallback extends Callback
| 修饰符和类型 | 字段 | 说明 |
|---|---|---|
static org.slf4j.Logger |
logger |
| 构造器 | 说明 |
|---|---|
DownloadFileCallback() |
|
DownloadFileCallback(String fileAbsolutePath) |
| 修饰符和类型 | 方法 | 说明 |
|---|---|---|
void |
onResponse(okhttp3.Call call,
Response response,
int id) |
|
void |
onSuccess(okhttp3.Call call,
File file,
int id) |
|
void |
onSuccess(okhttp3.Call call,
InputStream fileStream,
int id) |
public DownloadFileCallback()
public DownloadFileCallback(String fileAbsolutePath)
public void onResponse(okhttp3.Call call,
Response response,
int id)
onResponse 在类中 Callbackpublic void onSuccess(okhttp3.Call call,
File file,
int id)
public void onSuccess(okhttp3.Call call,
InputStream fileStream,
int id)
Copyright © 2019. All rights reserved.