Google is committed to advancing racial equity for Black communities. See how.

Page

data class Page<Key : Any, Value : Any> : PagingSource.LoadResult<Key, Value>
kotlin.Any
   ↳ androidx.paging.PagingSource.LoadResult<Key, Value>
   ↳ androidx.paging.PagingSource.LoadResult.Page

Success result object for PagingSource.load.


//Unresolved: androidx.paging.samples.pageKeyedPage

//Unresolved: androidx.paging.samples.pageIndexedPage

Summary

Constants
const Int

Public constructors
<init>(data: List<Value>, prevKey: Key?, nextKey: Key?, @IntRange(-2147483648) itemsBefore: Int = COUNT_UNDEFINED, @IntRange(-2147483648) itemsAfter: Int = COUNT_UNDEFINED)

Success result object for PagingSource.load.

Properties
List<Value>

Loaded data

Int

Optional count of items after the loaded data.

Int

Optional count of items before the loaded data.

Key?

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

Key?

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

Constants

COUNT_UNDEFINED

const val COUNT_UNDEFINED: Int
Value: Int.MIN_VALUE

Public constructors

<init>

Page(
    data: List<Value>,
    prevKey: Key?,
    nextKey: Key?,
    @IntRange(-2147483648) itemsBefore: Int = COUNT_UNDEFINED,
    @IntRange(-2147483648) itemsAfter: Int = COUNT_UNDEFINED)

Success result object for PagingSource.load.


//Unresolved: androidx.paging.samples.pageKeyedPage

//Unresolved: androidx.paging.samples.pageIndexedPage

Properties

data

val data: List<Value>

Loaded data

itemsAfter

val itemsAfter: Int

Optional count of items after the loaded data.

itemsBefore

val itemsBefore: Int

Optional count of items before the loaded data.

nextKey

val nextKey: Key?

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

prevKey

val prevKey: Key?

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