Concat
A class representing a concatenation of multiple data sources.
This class is used to concatenate multiple data sources into a single source. It takes multiple PagedData sources and loads them one after the other.
Example:
val data = PagedData.Concat(
PagedData.Single { api.loadShelves() },
PagedData.Continuous { api.loadShelvesPage(it) },
// Add more sources here
)Content copied to clipboard
Parameters
sources
The list of PagedData sources to concatenate
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T : Any> PagedData<T>.toFeedData(buttons: Feed.Buttons? = null, background: ImageHolder? = null): Feed.Data<T>