The Developer Preview for Android 11 is now available; test it out and share your feedback.

PagedListListener

interface PagedListListener<T : Any!>
androidx.paging.AsyncPagedListDiffer.PagedListListener

Listener for when the current PagedList is updated.

Summary

Public methods

abstract Unit
onCurrentListChanged(@Nullable previousList: PagedList<T>?, @Nullable currentList: PagedList<T>?)

Called after the current PagedList has been updated.

Public methods

onCurrentListChanged

abstract fun onCurrentListChanged(
    @Nullable previousList: PagedList<T>?,
    @Nullable currentList: PagedList<T>?
): Unit

Called after the current PagedList has been updated.

Parameters
previousList PagedList<T>?: The previous list, may be null.
currentList PagedList<T>?: The new current list, may be null.