public class

ItemKeyedDataSource.LoadParams<Key>

extends java.lang.Object

 java.lang.Object

↳androidx.paging.ItemKeyedDataSource.LoadParams<Key>

Overview

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

Summary

Fields
public final java.lang.Objectkey

Load items before/after this key.

public final intrequestedLoadSize

Requested number of items to load.

Constructors
publicLoadParams(java.lang.Object key, int requestedLoadSize)

Methods
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public final java.lang.Object key

Load items before/after this key.

Returned data must begin directly adjacent to this position.

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.

Constructors

public LoadParams(java.lang.Object key, int requestedLoadSize)