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