LoadInitialParams
Kotlin
|Java
open class LoadInitialParams<Key : Any>
kotlin.Any | |
↳ | androidx.paging.PageKeyedDataSource.LoadInitialParams |
Holder object for inputs to loadInitial.
Summary
Public constructors | |
---|---|
Holder object for inputs to loadInitial. |
Properties | |
---|---|
Boolean |
Defines whether placeholders are enabled, and whether the loaded total count will be ignored. |
Int |
Requested number of items to load. |
Public constructors
<init>
LoadInitialParams(
requestedLoadSize: Int,
placeholdersEnabled: Boolean)
Holder object for inputs to loadInitial.
Parameters | |
---|---|
Key |
Type of data used to query pages. |
Properties
placeholdersEnabled
val placeholdersEnabled: Boolean
Defines whether placeholders are enabled, and whether the loaded total count will be ignored.
requestedLoadSize
val requestedLoadSize: Int
Requested number of items to load.
Note that this may be larger than available data.