Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

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
Int

Requested number of items to load.

Boolean

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

Public constructors

<init>

LoadInitialParams(requestedLoadSize: Int, placeholdersEnabled: Boolean)

Properties

requestedLoadSize

val requestedLoadSize: Int

Requested number of items to load.

Note that this may be larger than available data.

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.