Listing
Listing
is a structure designed to manage a list stream.
It contains basically five elements:
pagedList: A changing data stream of type
T
represented as aLiveData
of aPagedList
.A
PagedList
is a List which loads its data in chunks (pages) from aDataSource
.To display a
PagedList
, you must use aPagedListAdapter
, which enables the binding of aPagedList
to aRecyclerView
.networkState: A stream that notifies network state changes, such as when a new page started loading (so you can show a spinner in the UI).
refresh: A refresh function, to refresh all data.
refreshState: A stream that notifies the status of the refresh request.
retry: A retry function to execute if something fails.
Last updated