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

PageKeyedDataSource.LoadInitialParams

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

open class PageKeyedDataSource.LoadInitialParams<Key : Any>


Holder object for inputs to loadInitial.

Parameters
<Key : Any>

Type of data used to query pages.

Summary

Public properties

Boolean

Defines whether placeholders are enabled, and whether the loaded total count will be ignored.

Int

Requested number of items to load.

Public constructors

<Key : Any> LoadInitialParams(
    requestedLoadSize: Int,
    placeholdersEnabled: Boolean
)

Public properties

placeholdersEnabled

val placeholdersEnabledBoolean

Defines whether placeholders are enabled, and whether the loaded total count will be ignored.

requestedLoadSize

val requestedLoadSizeInt

Requested number of items to load.

Note that this may be larger than available data.

Public constructors

LoadInitialParams

<Key : Any> LoadInitialParams(
    requestedLoadSize: Int,
    placeholdersEnabled: Boolean
)
Parameters
<Key : Any>

Type of data used to query pages.