public interface ProgressListener
Modifier and Type | Method and Description |
---|---|
void |
onComplete()
This callback will be invoked after the transfer has completed.
|
void |
onError(java.lang.Exception exception)
This callback will be invoked if there is an error during the transfer.
|
void |
onProgress(long currentBytes,
long bytesTotal)
This method will be called after a chunk has been transferred.
|
void onProgress(long currentBytes, long bytesTotal)
currentBytes
- the number of bytes transferred. Note that
the value will be passed as a string since it may be >2GB.bytesTotal
- the total number of bytes to transfer. If
the total number of bytes is unknown, this value will be -1. Note that
the value will be passed as a string since it may be >2GB.void onComplete()
void onError(java.lang.Exception exception)
exception
- the exception that caused the transfer to
fail.