public interface FileProgress
Modifier and Type | Interface and Description |
---|---|
static class |
FileProgress.Adapter |
Modifier and Type | Method and Description |
---|---|
void |
cantDownloadFile()
Notifies progress that current retriever can't download this file
|
void |
errorOccurred(java.lang.Throwable e)
Notifies progress that an error occurred during download
|
void |
fileDownloaded()
Notifies progress that this file is downloaded
|
long |
getExpectedLength() |
long |
getTransferred() |
boolean |
isFinished() |
void |
setExpectedLength(long expectedLength)
Sets expected total size
|
void |
transferred(long count)
Increases total downloaded size by count
|
void transferred(long count)
count
- downloaded bytesvoid setExpectedLength(long expectedLength)
expectedLength
- - expected length of the filelong getTransferred()
boolean isFinished()
long getExpectedLength()
void cantDownloadFile()
void fileDownloaded()
void errorOccurred(java.lang.Throwable e)
e
- - an error occurred during download