SimpleTestIviDataSource
class SimpleTestIviDataSource<E : Any, Q : Any>( dataByQuery: Map<Q, List<E>>, jumpingSupported: Boolean = true, keyReuseSupported: Boolean = true) : AbstractTestIviDataSource<E, Q>
Content copied to clipboard
An IviDataSource, for testing purpose, that creates IviPagingSources that allows loading of a predefined data list. The IviPagingSource allows loading of data from an dataByQuery entry. The data is loaded from the entry with a key that equals the query
argument given to createPagingSource or createPagingSourceFlow.
Constructors
Inherited properties
Link copied to clipboard
val pagingSourceFactorySpy: AbstractTestIviDataSource.PagingSourceFactory<E, Q>
Content copied to clipboard
Spies the access to the pagingSourceFactory.
Inherited functions
Link copied to clipboard
override fun createPagingSource(query: Q, lifecycleOwner: LifecycleOwner): IviPagingSource<E>
Content copied to clipboard
Link copied to clipboard