docs/doc/reference/com/google/android/exoplayer2/upstream/cache/CacheDataSource.EventListener.html
Package com.google.android.exoplayer2.upstream.cache
public static interfaceCacheDataSource.EventListener
Listener of CacheDataSource events.
All Methods Instance Methods Abstract Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| void | onCachedBytesRead(long cacheSizeBytes, long cachedBytesRead) |
Called when bytes have been read from the cache.
|
| void | onCacheIgnored(@com.google.android.exoplayer2.upstream.cache.CacheDataSource.CacheIgnoredReason int reason) |
Called when the current request ignores cache.
|
-
void onCachedBytesRead(long cacheSizeBytes,
long cachedBytesRead)
Called when bytes have been read from the cache.
Parameters:cacheSizeBytes - Current cache size in bytes.cachedBytesRead - Total bytes read from the cache since this method was last called.
-
void onCacheIgnored([@CacheIgnoredReason](CacheDataSource.CacheIgnoredReason.html "annotation in com.google.android.exoplayer2.upstream.cache")@com.google.android.exoplayer2.upstream.cache.CacheDataSource.CacheIgnoredReason int reason)
Called when the current request ignores cache.
Parameters:reason - Reason cache is bypassed.