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
      总字节数,未知时为-1