Interface FileDownloader.ProgressListener

Enclosing interface:
FileDownloader

public static interface FileDownloader.ProgressListener
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onProgress(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 far
      totalBytes - the total bytes if known, otherwise -1
      progress - the progress (0.0 - 1.0) if the total bytes is known, otherwise -1