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 TypeMethodDescriptionvoidonComplete(long totalBytesRead) Called when the streaming operation is complete.voidonProgress(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 fartotalSize- 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
-