PrefetchingRepository

constructor(cachingRepository: MediaRepository, disableEagerCaching: Boolean = false, requestDispatcher: CoroutineDispatcher = Dispatchers.Main)

Parameters

cachingRepository

a MediaRepository implementation that performs caching

disableEagerCaching

this allows to temporarily disable eager requests. This can be uses when the system is in power saving mode.

requestDispatcher

the thread this repository should use to perform requests with. This should be the same thad as the one NewPlayer is in.