public abstract class UIProgressResponseCallBack extends java.lang.Object implements IProgressResponseCallBack
描述:可以直接更新UI的回调
| Modifier and Type | Class and Description |
|---|---|
class |
UIProgressResponseCallBack.ProgressModel |
| Constructor and Description |
|---|
UIProgressResponseCallBack() |
| Modifier and Type | Method and Description |
|---|---|
void |
onResponseProgress(long bytesWritten,
long contentLength,
boolean done)
回调进度
|
abstract void |
onUIResponseProgress(long bytesRead,
long contentLength,
boolean done)
UI层回调抽象方法
|
public void onResponseProgress(long bytesWritten,
long contentLength,
boolean done)
IProgressResponseCallBackonResponseProgress in interface IProgressResponseCallBackbytesWritten - 当前读取响应体字节长度contentLength - 总长度done - 是否读取完成public abstract void onUIResponseProgress(long bytesRead,
long contentLength,
boolean done)
bytesRead - 当前读取响应体字节长度contentLength - 总字节长度done - 是否读取完成