public class

PageKeyedDataSource.LoadParams<Key>

extends java.lang.Object

 java.lang.Object

↳androidx.paging.PageKeyedDataSource.LoadParams<Key>

Overview

Holder object for inputs to PageKeyedDataSource.loadBefore(PageKeyedDataSource.LoadParams, PageKeyedDataSource.LoadCallback) and PageKeyedDataSource.loadAfter(PageKeyedDataSource.LoadParams, PageKeyedDataSource.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)