com.kinvey.java.core.DownloaderProgressListener |
![]() |
An interface for receiving progress notifications for downloads.
Sample usage:
public static class MyDownloadProgressListener implements DownloaderProgressListener { public void progressChanged(MediaHttpDownloader downloader) throws IOException { switch (downloader.getDownloadState()) { case DOWNLOAD_IN_PROGRESS: //Download in progress //Download percentage: + downloader.getProgress() break; case DOWNLOAD_COMPLETE: //Download Completed! break; } } }
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
progressChanged(MediaHttpDownloader downloader)
Called to notify that progress has been changed.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Called to notify that progress has been changed.
This method is called multiple times depending on how many chunks are downloaded. Once the download completes it is called one final time.
The download state can be queried by calling getDownloadState()
and
the progress by calling getProgress()
.
downloader | Media HTTP downloader |
---|
IOException |
---|