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.

@FunctionalInterface public static interface HttpDownloadUtils.ProgressCallback
Progress callback interface for download operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onProgress(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 far
      totalBytes - Total bytes to download, -1 if unknown