{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
open class ItemKeyedDataSource.LoadInitialParams<Key : Any>
Holder object for inputs to loadInitial
.
Parameters | |
---|---|
<Key : Any> |
Type of data used to query |
Public properties |
|
---|---|
Boolean |
Defines whether placeholders are enabled, and whether the loaded total count will be ignored. |
Key? |
Load items around this key, or at the beginning of the data set if |
Int |
Requested number of items to load. |
Public constructors |
|
---|---|
<Key : Any> LoadInitialParams( |
val placeholdersEnabled: Boolean
Defines whether placeholders are enabled, and whether the loaded total count will be ignored.
val requestedInitialKey: Key?
Load items around this key, or at the beginning of the data set if null
is passed.
Note that this key is generally a hint, and may be ignored if you want to always load from the beginning.
val requestedLoadSize: Int
Requested number of items to load.
Note that this may be larger than available data.
<Key : Any> LoadInitialParams(
requestedInitialKey: Key?,
requestedLoadSize: Int,
placeholdersEnabled: Boolean
)
Parameters | |
---|---|
<Key : Any> |
Type of data used to query |