PageKeyedDataSource.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 pages.

Summary

Public constructors

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

This function is deprecated. PageKeyedDataSource is deprecated and has been replaced by PagingSource

android

Public properties

Boolean

This property is deprecated. PageKeyedDataSource is deprecated and has been replaced by PagingSource

android
Int

This property is deprecated. PageKeyedDataSource is deprecated and has been replaced by PagingSource

android

Public constructors

LoadInitialParams

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

Type of data used to query pages.

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.

requestedLoadSize

val requestedLoadSizeInt

Requested number of items to load.

Note that this may be larger than available data.