ContactsTestIviDataSource

class ContactsTestIviDataSource(jumpingSupported: Boolean = true, keyReuseSupported: Boolean = true) : AbstractTestIviDataSource<ContactsDataSourceElement, ContactsDataSourceQuery>

Test data source which can be used during testing of contacts.

Constructors

Link copied to clipboard
fun ContactsTestIviDataSource(jumpingSupported: Boolean = true, keyReuseSupported: Boolean = true)

Inherited properties

Link copied to clipboard
override val jumpingSupported: Boolean
Link copied to clipboard
override val keyReuseSupported: Boolean

Functions

Link copied to clipboard
fun addQueryWithResult(query: ContactsDataSourceQuery, result: List<ContactsDataSourceElement>)
Link copied to clipboard
fun reload()
Link copied to clipboard
fun setContacts(contactsList: List<Contact>)

Inherited functions

Link copied to clipboard
override fun createPagingSource(query: ContactsDataSourceQuery, lifecycleOwner: LifecycleOwner): IviPagingSource<ContactsDataSourceElement>
Link copied to clipboard
override fun createPagingSourceFlow(query: ContactsDataSourceQuery): Flow<IviPagingSource<ContactsDataSourceElement>>