Interface StreamingProgressListener


public interface StreamingProgressListener
Interface for listening to streaming progress events. Implementations can use this to track the progress of streaming operations such as file downloads, uploads, or processing.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onComplete(long totalBytesRead)
    Called when the streaming operation is complete.
    void
    onProgress(long bytesRead, long totalSize)
    Called periodically during a streaming operation to report progress.
  • Method Details

    • onProgress

      void onProgress(long bytesRead, long totalSize)
      Called periodically during a streaming operation to report progress.
      Parameters:
      bytesRead - The number of bytes read so far
      totalSize - The total size of the stream in bytes, or -1 if unknown
    • onComplete

      void onComplete(long totalBytesRead)
      Called when the streaming operation is complete.
      Parameters:
      totalBytesRead - The total number of bytes that were read