Interface CacheWriter.ProgressListener
-
- Enclosing class:
- CacheWriter
public static interface CacheWriter.ProgressListenerReceives progress updates during cache operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonProgress(long requestLength, long bytesCached, long newBytesCached)Called when progress is made during a cache operation.
-
-
-
Method Detail
-
onProgress
void onProgress(long requestLength, long bytesCached, long newBytesCached)Called when progress is made during a cache operation.- Parameters:
requestLength- The length of the content being cached in bytes, orC.LENGTH_UNSETif unknown.bytesCached- The number of bytes that are cached.newBytesCached- The number of bytes that have been newly cached since the last progress update.
-
-