public abstract class ProgressUIListener extends ProgressListener
| Constructor and Description |
|---|
ProgressUIListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onProgressChanged(long numBytes,
long totalBytes,
float percent,
float speed)
进度发生了改变,如果numBytes,totalBytes,percent,speed都为-1,则表示总大小获取不到
|
void |
onProgressFinish()
进度结束
|
void |
onProgressStart(long totalBytes)
进度开始
|
abstract void |
onUIProgressChanged(long numBytes,
long totalBytes,
float percent,
float speed)
进度发生了改变,如果numBytes,totalBytes,percent,speed都为-1,则表示总大小获取不到
|
void |
onUIProgressFinish()
进度结束
|
void |
onUIProgressStart(long totalBytes)
进度开始
|
onProgressChangedpublic final void onProgressChanged(long numBytes,
long totalBytes,
float percent,
float speed)
onProgressChanged in class ProgressListenernumBytes - 已读/写大小totalBytes - 总大小percent - 百分比speed - 速度 bytes/mspublic final void onProgressStart(long totalBytes)
onProgressStart in class ProgressListenertotalBytes - 总大小public final void onProgressFinish()
onProgressFinish in class ProgressListenerpublic abstract void onUIProgressChanged(long numBytes,
long totalBytes,
float percent,
float speed)
numBytes - 已读/写大小totalBytes - 总大小percent - 百分比speed - 速度 bytes/mspublic void onUIProgressStart(long totalBytes)
totalBytes - 总大小public void onUIProgressFinish()