public static interface CacheWriter.ProgressListener
Modifier and Type | Method | Description |
---|---|---|
void |
onProgress(long requestLength,
long bytesCached,
long newBytesCached) |
Called when progress is made during a cache operation.
|
void onProgress(long requestLength, long bytesCached, long newBytesCached)
requestLength
- The length of the content being cached in bytes, or C.LENGTH_UNSET
if unknown.bytesCached
- The number of bytes that are cached.newBytesCached
- The number of bytes that have been newly cached since the last progress
update.