LoadParams
open class LoadParams<Key : Any!>
kotlin.Any | |
↳ | androidx.paging.PageKeyedDataSource.LoadParams |
Holder object for inputs to loadBefore(LoadParams, LoadCallback)
and loadAfter(LoadParams, LoadCallback)
.
Summary
Public constructors |
|
---|---|
Properties |
|
---|---|
Key |
Load items before/after this key. |
Int |
Requested number of items to load. |
Public constructors
<init>
LoadParams(@NonNull key: Key, requestedLoadSize: Int)
Properties
key
@NonNull 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.