LoadParams
Kotlin
|Java
open class LoadParams<Key : Any>
kotlin.Any | |
↳ | androidx.paging.PageKeyedDataSource.LoadParams |
Holder object for inputs to loadBefore and loadAfter.
Summary
Public constructors | |
---|---|
Holder object for inputs to loadBefore and loadAfter. |
Properties | |
---|---|
Key |
Load items before/after this key. |
Int |
Requested number of items to load. |
Public constructors
<init>
LoadParams(
key: Key,
requestedLoadSize: Int)
Holder object for inputs to loadBefore and loadAfter.
Parameters | |
---|---|
Key |
Type of data used to query pages. |
Properties
key
val key: Key
Load items before/after this key.
Returned data must begin directly adjacent to this position.
requestedLoadSize
val requestedLoadSize: Int
Requested number of items to load.
Returned page can be of this size, but it may be altered if that is easier, e.g. a network data source where the backend defines page size.