CacheWriter.ProgressListener


public interface CacheWriter.ProgressListener


Receives progress updates during cache operations.

Summary

Public methods

abstract void
onProgress(long requestLength, long bytesCached, long newBytesCached)

Called when progress is made during a cache operation.

Public methods

onProgress

abstract void onProgress(long requestLength, long bytesCached, long newBytesCached)

Called when progress is made during a cache operation.

Parameters
long requestLength

The length of the content being cached in bytes, or LENGTH_UNSET if unknown.

long bytesCached

The number of bytes that are cached.

long newBytesCached

The number of bytes that have been newly cached since the last progress update.