public class

ItemKeyedDataSource.LoadInitialParams<Key>

extends java.lang.Object

 java.lang.Object

↳androidx.paging.ItemKeyedDataSource.LoadInitialParams<Key>

Overview

Holder object for inputs to ItemKeyedDataSource.loadInitial(ItemKeyedDataSource.LoadInitialParams, ItemKeyedDataSource.LoadInitialCallback).

Summary

Fields
public final booleanplaceholdersEnabled

Defines whether placeholders are enabled, and whether the total count passed to ItemKeyedDataSource.LoadInitialCallback.onResult(List, int, int) will be ignored.

public final java.lang.ObjectrequestedInitialKey

Load items around this key, or at the beginning of the data set if null is passed.

public final intrequestedLoadSize

Requested number of items to load.

Constructors
publicLoadInitialParams(java.lang.Object requestedInitialKey, int requestedLoadSize, boolean placeholdersEnabled)

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

Fields

public final java.lang.Object requestedInitialKey

Load items around this key, or at the beginning of the data set if null is passed.

Note that this key is generally a hint, and may be ignored if you want to always load from the beginning.

public final int requestedLoadSize

Requested number of items to load.

Note that this may be larger than available data.

public final boolean placeholdersEnabled

Defines whether placeholders are enabled, and whether the total count passed to ItemKeyedDataSource.LoadInitialCallback.onResult(List, int, int) will be ignored.

Constructors

public LoadInitialParams(java.lang.Object requestedInitialKey, int requestedLoadSize, boolean placeholdersEnabled)