androidx.media3.datasource.cache


Annotations

CacheDataSource.CacheIgnoredReason

Reasons the cache may be ignored.

CacheDataSource.Flags

Flags controlling the CacheDataSource's behavior.

Interfaces

Cache

A cache that supports partial caching of resources.

Cache.Listener

Listener of Cache events.

CacheDataSource.EventListener

Listener of CacheDataSource events.

CacheEvictor

Evicts data from a Cache.

CacheKeyFactory

Factory for cache keys.

CacheWriter.ProgressListener

Receives progress updates during cache operations.

ContentMetadata

Interface for an immutable snapshot of keyed metadata.

Classes

CacheDataSink

Writes data into a cache.

CacheDataSink.Factory

DataSink.Factory for CacheDataSink instances.

CacheDataSource

A DataSource that reads and writes a Cache.

CacheDataSource.Factory

DataSource.Factory for CacheDataSource instances.

CacheSpan

Defines a span of data that may or may not be cached (as indicated by isCached).

CacheWriter

Caching related utility methods.

ContentMetadataMutations

Defines multiple mutations on metadata value which are applied atomically.

DefaultContentMetadata

Default implementation of ContentMetadata.

LeastRecentlyUsedCacheEvictor

Evicts least recently used cache files first.

NoOpCacheEvictor

Evictor that doesn't ever evict cache files.

SimpleCache

A Cache implementation that maintains an in-memory representation.

Exceptions

Cache.CacheException

Thrown when an error is encountered when writing data.

CacheDataSink.CacheDataSinkException

Thrown when an IOException is encountered when writing data to the sink.