public class

PageKeyedDataSource.LoadInitialParams<Key>

extends java.lang.Object

 java.lang.Object

↳androidx.paging.PageKeyedDataSource.LoadInitialParams<Key>

Overview

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

Summary

Fields
public final booleanplaceholdersEnabled

Defines whether placeholders are enabled, and whether the total count passed to PageKeyedDataSource.LoadInitialCallback will be ignored.

public final intrequestedLoadSize

Requested number of items to load.

Constructors
publicLoadInitialParams(int requestedLoadSize, boolean placeholdersEnabled)

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

Fields

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 PageKeyedDataSource.LoadInitialCallback will be ignored.

Constructors

public LoadInitialParams(int requestedLoadSize, boolean placeholdersEnabled)