Page

data class Page<Key : Any, Value : Any>(    val data: List<Value>,     val prevKey: Key?,     val nextKey: Key?,     val totalCount: Int?) : PagingDataSource.LoadResult<Key, Value>

Success result object for PagingSource.load.

Parameters

data

Loaded data

prevKey

Key for previous page if more data can be loaded in that direction, null otherwise.

nextKey

Key for next page if more data can be loaded in that direction, null otherwise.

Constructors

Link copied to clipboard
fun <Key : Any, Value : Any> Page(    data: List<Value>,     prevKey: Key?,     nextKey: Key?,     totalCount: Int?)

Properties

Link copied to clipboard
val data: List<Value>

Loaded data

Link copied to clipboard
val nextKey: Key?

Key for next page if more data can be loaded in that direction, null otherwise.

Link copied to clipboard
val prevKey: Key?

Key for previous page if more data can be loaded in that direction, null otherwise.

Link copied to clipboard
val totalCount: Int?

The total item count (may include not fetched pages) if known, null otherwise