public class

PositionalDataSource.LoadInitialParams

extends java.lang.Object

 java.lang.Object

↳androidx.paging.PositionalDataSource.LoadInitialParams

Overview

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

Summary

Fields
public final intpageSize

Defines page size acceptable for return values.

public final booleanplaceholdersEnabled

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

public final intrequestedLoadSize

Requested number of items to load.

public final intrequestedStartPosition

Initial load position requested.

Constructors
publicLoadInitialParams(int requestedStartPosition, int requestedLoadSize, int pageSize, boolean placeholdersEnabled)

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

Fields

public final int requestedStartPosition

Initial load position requested.

Note that this may not be within the bounds of your data set, it may need to be adjusted before you execute your load.

public final int requestedLoadSize

Requested number of items to load.

Note that this may be larger than available data.

public final int pageSize

Defines page size acceptable for return values.

List of items passed to the callback must be an integer multiple of page size.

public final boolean placeholdersEnabled

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

Constructors

public LoadInitialParams(int requestedStartPosition, int requestedLoadSize, int pageSize, boolean placeholdersEnabled)