Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!

ItemKeyedDataSource.LoadParams

public static class ItemKeyedDataSource.LoadParams
extends Object

java.lang.Object
   ↳ androidx.paging.ItemKeyedDataSource.LoadParams<Key>


Holder object for inputs to ItemKeyedDataSource.loadBefore(LoadParams, LoadCallback) and ItemKeyedDataSource.loadAfter(LoadParams, LoadCallback).

Summary

Fields

public final Key key

Load items before/after this key.

public final int requestedLoadSize

Requested number of items to load.

Public constructors

ItemKeyedDataSource.LoadParams(Key key, int requestedLoadSize)

Inherited methods

Fields

key

public final Key key

Load items before/after this key.

Returned data must begin directly adjacent to this position.

requestedLoadSize

public final int requestedLoadSize

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.

Public constructors

ItemKeyedDataSource.LoadParams

public ItemKeyedDataSource.LoadParams (Key key, 
                int requestedLoadSize)

Parameters
key Key

requestedLoadSize int