PagingData.Companion

object PagingData.Companion


Summary

Public functions

PagingData<T>
<T : Any?> empty()

Create a PagingData that immediately displays an empty list of items when submitted to androidx.paging.AsyncPagingDataAdapter.

PagingData<T>
<T : Any?> from(data: List<T?>?)

Create a PagingData that immediately displays a static list of items when submitted to androidx.paging.AsyncPagingDataAdapter.

Public functions

empty

fun <T : Any?> empty(): PagingData<T>

Create a PagingData that immediately displays an empty list of items when submitted to androidx.paging.AsyncPagingDataAdapter.

from

fun <T : Any?> from(data: List<T?>?): PagingData<T>

Create a PagingData that immediately displays a static list of items when submitted to androidx.paging.AsyncPagingDataAdapter.

Parameters
data: List<T?>?

Static list of T to display.