Package com.ultikits.ultitools.utils
Interface HttpDownloadUtils.ProgressCallback
- Enclosing class:
HttpDownloadUtils
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Progress callback interface for download operations.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonProgress(long bytesDownloaded, long totalBytes) Called when download progress is updated.
-
Method Details
-
onProgress
void onProgress(long bytesDownloaded, long totalBytes) Called when download progress is updated.- Parameters:
bytesDownloaded- Bytes downloaded so fartotalBytes- Total bytes to download, -1 if unknown
-