Back to Exoplayer

CacheWriter.ProgressListener (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/upstream/cache/CacheWriter.ProgressListener.html

latest1.2 KB
Original Source

Package com.google.android.exoplayer2.upstream.cache

Interface CacheWriter.ProgressListener


public static interfaceCacheWriter.ProgressListener

Receives progress updates during cache operations.

Method Summary

All Methods Instance Methods Abstract Methods | Modifier and Type | Method | Description | | --- | --- | --- | | void | onProgress​(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, 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.