public interface DownloadListener
| Modifier and Type | Method and Description |
|---|---|
void |
connecting()
Indicates that the download is attempting to connect.
|
void |
finish(long totalProcessed)
Marks the download as finished.
|
void |
start(long expectedLen)
The expected length for the download.
|
void |
update(long processedBytes)
Updates the listener on how many bytes have been processed.
|
void connecting()
void start(long expectedLen)
expectedLen - The expected length or -1.void update(long processedBytes)
processedBytes - The progress.void finish(long totalProcessed)
totalProcessed - The total number of bytes downloaded.