public class ProgressReporter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
mTotalBytes |
| Constructor and Description |
|---|
ProgressReporter(long totalBytes) |
| Modifier and Type | Method and Description |
|---|---|
long |
getBytesTransferred() |
java.lang.Exception |
getException() |
long |
getMaxBytes() |
boolean |
hasCompleted() |
boolean |
hasError() |
void |
onCompleted() |
void |
onError(java.lang.Exception e) |
void |
onProgress(long bytesTransferred) |
void |
setBytesTransferred(long bytesTransferred) |
void |
setMaxBytes(long maxBytes) |
public void onProgress(long bytesTransferred)
public void onCompleted()
public void onError(java.lang.Exception e)
public void setBytesTransferred(long bytesTransferred)
public boolean hasCompleted()
public boolean hasError()
public java.lang.Exception getException()
public long getBytesTransferred()
public long getMaxBytes()
public void setMaxBytes(long maxBytes)