LoadInitialParams

open class LoadInitialParams<Key : Any!>
kotlin.Any
   ↳ androidx.paging.PageKeyedDataSource.LoadInitialParams

Holder object for inputs to loadInitial(LoadInitialParams, LoadInitialCallback).

Summary

Public constructors

<init>(requestedLoadSize: Int, placeholdersEnabled: Boolean)

Properties

Boolean

Defines whether placeholders are enabled, and whether the total count passed to LoadInitialCallback#onResult(List, int, int, Key, Key) will be ignored.

Int

Requested number of items to load.

Public constructors

<init>

LoadInitialParams(requestedLoadSize: Int, placeholdersEnabled: Boolean)

Properties

placeholdersEnabled

val placeholdersEnabled: Boolean

Defines whether placeholders are enabled, and whether the total count passed to LoadInitialCallback#onResult(List, int, int, Key, Key) will be ignored.

requestedLoadSize

val requestedLoadSize: Int

Requested number of items to load.

Note that this may be larger than available data.