Interface FileDownloader.ProgressListener
- Enclosing interface:
FileDownloader
public static interface FileDownloader.ProgressListener
-
Method Summary
Modifier and TypeMethodDescriptionvoidonProgress(long bytesTransferred, long totalBytes, double progress) Called periodically during a download.
-
Method Details
-
onProgress
void onProgress(long bytesTransferred, long totalBytes, double progress) Called periodically during a download.- Parameters:
bytesTransferred- the bytes transferred so fartotalBytes- the total bytes if known, otherwise -1progress- the progress (0.0 - 1.0) if the total bytes is known, otherwise -1
-