AbstractTestIviDataSource
abstract class AbstractTestIviDataSource<E : Any, Q : Any>(val jumpingSupported: Boolean = true, val keyReuseSupported: Boolean = true) : IviDataSource<E, Q>
Content copied to clipboard
Base class for implementing an IviDataSource for testing purpose.
The implementation invokes pagingSourceFactory's PagingSourceFactory.create whenever a new IviPagingSource needs to be created. Creation of paging sources can be validated through the pagingSourceFactorySpy.
Constructors
Link copied to clipboard
fun AbstractTestIviDataSource(jumpingSupported: Boolean = true, keyReuseSupported: Boolean = true)
Content copied to clipboard
Types
Link copied to clipboard
Interface for factory to create an IviPagingSource.
Properties
Link copied to clipboard
val pagingSourceFactorySpy: AbstractTestIviDataSource.PagingSourceFactory<E, Q>
Content copied to clipboard
Spies the access to the pagingSourceFactory.
Functions
Link copied to clipboard
override fun createPagingSource(query: Q, lifecycleOwner: LifecycleOwner): IviPagingSource<E>
Content copied to clipboard
Link copied to clipboard