InvalidatedCallback
Kotlin
|Java
interface InvalidatedCallback
androidx.paging.DataSource.InvalidatedCallback |
Summary
Public methods | |
---|---|
abstract Unit |
Called when the data backing the list has become invalid. |
Public methods
onInvalidated
@AnyThread abstract fun onInvalidated(): Unit
Called when the data backing the list has become invalid. This callback is typically used to signal that a new data source is needed.
This callback will be invoked on the thread that calls invalidate. It is valid for the data source to invalidate itself during its load methods, or for an outside source to invalidate it.