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

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
<init>(@NonNull key: Key, requestedLoadSize: Int)

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.