{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

ItemKeyedDataSource.LoadParams

{% setvar page_path %}androidx/paging/ItemKeyedDataSource.LoadParams.html{% endsetvar %} {% setvar can_switch %}1{% endsetvar %} {% include "reference/_kotlin_switcher2.md" %}

open class ItemKeyedDataSource.LoadParams<Key : Any>


Holder object for inputs to loadBefore and loadAfter.

Parameters
<Key : Any>

Type of data used to query Value types out of the DataSource.

Summary

Public properties

Key

Load items before/after this key.

Int

Requested number of items to load.

Public constructors

<Key : Any> LoadParams(key: Key, requestedLoadSize: Int)

Public properties

key

val key: Key

Load items before/after this key.

Returned data must begin directly adjacent to this position.

requestedLoadSize

val requestedLoadSizeInt

Requested number of items to load.

Returned page can be of this size, but it may be altered if that is easier, e.g. a network data source where the backend defines page size.

Public constructors

LoadParams

<Key : Any> LoadParams(key: Key, requestedLoadSize: Int)
Parameters
<Key : Any>

Type of data used to query Value types out of the DataSource.