{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
class InvalidatingPagingSourceFactory<Key : Any, Value : Any>
Wrapper class for PagingSource
factory intended for usage in Pager
construction. Stores reference to the PagingSource
factory and the PagingSource
s it produces for invalidation when the backing dataset is updated.
Calling invalidate
on this InvalidatingPagingSourceFactory
will automatically forward invalidate signals to all active PagingSource
s.
Public constructors |
|
---|---|
<Key : Any, Value : Any> InvalidatingPagingSourceFactory( |
Public functions |
|
---|---|
Unit |
Calls |
open operator PagingSource<Key, Value> |
invoke() |
<Key : Any, Value : Any> InvalidatingPagingSourceFactory(
pagingSourceFactory: () -> PagingSource<Key, Value>
)
Parameters | |
---|---|
pagingSourceFactory: () -> PagingSource<Key, Value> |
The |
fun invalidate(): Unit
Calls PagingSource.invalidate
on each PagingSource
that was produced by this InvalidatingPagingSourceFactory
open operator fun invoke(): PagingSource<Key, Value>
Returns | |
---|---|
PagingSource<Key, Value> |
|