ItemKeyedDataSource.LoadInitialParams

Added in 2.0.0
Deprecated in 3.0.0

Holder object for inputs to loadInitial.

Parameters
<Key : Any>

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

Summary

Public constructors

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

Public properties

Boolean

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

android
Key?

Load items around this key, or at the beginning of the data set if null is passed.

android
Int

Requested number of items to load.

android

Public constructors

LoadInitialParams

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

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

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.

requestedLoadSize: Int

Requested number of items to load.

Note that this may be larger than available data.

placeholdersEnabled: Boolean

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

Public properties

placeholdersEnabled

val placeholdersEnabledBoolean

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

requestedInitialKey

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.

requestedLoadSize

val requestedLoadSizeInt

Requested number of items to load.

Note that this may be larger than available data.