PagedList.Callback
-
android
abstract class PagedList.Callback
Callback signaling when content is loaded into the list.
Can be used to listen to items being paged in and out. These calls will be dispatched on the dispatcher defined by PagedList.Builder.setNotifyDispatcher, which is generally the main/UI thread.
Summary
Public constructors |
|
|---|---|
This function is deprecated. PagedList is deprecated and has been replaced by PagingData |
android
|
Public functions |
||
|---|---|---|
abstract Unit |
This function is deprecated. PagedList is deprecated and has been replaced by PagingData |
android
|
abstract Unit |
This function is deprecated. PagedList is deprecated and has been replaced by PagingData |
android
|
abstract Unit |
This function is deprecated. PagedList is deprecated and has been replaced by PagingData |
android
|
Public constructors
Public functions
onChanged
abstract funonChanged(position: Int, count: Int): Unit
Called when null padding items have been loaded to signal newly available data, or when data that hasn't been used in a while has been dropped, and swapped back to null.
onInserted
abstract funonInserted(position: Int, count: Int): Unit
Called when new items have been loaded at the end or beginning of the list.