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

Prepend

class Prepend<Key : Any> : PagingSource.LoadParams<Key>
kotlin.Any
   ↳ androidx.paging.PagingSource.LoadParams<Key>
   ↳ androidx.paging.PagingSource.LoadParams.Prepend

Params to load a page of data from a PagingSource via PagingSource.load to be prepended to the start of the list.

Summary

Public constructors
<init>(key: Key, loadSize: Int, placeholdersEnabled: Boolean, pageSize: Int = loadSize)

Params to load a page of data from a PagingSource via PagingSource.load to be prepended to the start of the list.

Properties
Key

Key for the page to be loaded.

Inherited properties

Public constructors

<init>

Prepend(
    key: Key,
    loadSize: Int,
    placeholdersEnabled: Boolean,
    pageSize: Int = loadSize)

Params to load a page of data from a PagingSource via PagingSource.load to be prepended to the start of the list.

Properties

key

val key: Key

Key for the page to be loaded.

key can be null only if this LoadParams is Refresh, and either no initialKey is provided to the Pager or PagingSource.getRefreshKey from the previous PagingSource returns null.

The value of key is dependent on the type of LoadParams: