PositionalDataSource.LoadInitialParams

public static class PositionalDataSource.LoadInitialParams
extends Object

java.lang.Object
↳ android.arch.paging.PositionalDataSource.LoadInitialParams


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

Summary

Fields

public final int pageSize

Defines page size acceptable for return values.

public final boolean placeholdersEnabled

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

public final int requestedLoadSize

Requested number of items to load.

public final int requestedStartPosition

Initial load position requested.

Public constructors

PositionalDataSource.LoadInitialParams(int requestedStartPosition, int requestedLoadSize, int pageSize, boolean placeholdersEnabled)

Inherited methods

From class java.lang.Object
Object clone()
boolean equals(Object arg0)
void finalize()
final Class<?> getClass()
int hashCode()
final void notify()
final void notifyAll()
String toString()
final void wait(long arg0, int arg1)
final void wait(long arg0)
final void wait()

Fields

pageSize

int pageSize

Defines page size acceptable for return values.

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

placeholdersEnabled

boolean placeholdersEnabled

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

requestedLoadSize

int requestedLoadSize

Requested number of items to load.

Note that this may be larger than available data.

requestedStartPosition

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 constructors

PositionalDataSource.LoadInitialParams

PositionalDataSource.LoadInitialParams (int requestedStartPosition, 
 int requestedLoadSize, 
 int pageSize, 
 boolean placeholdersEnabled)

Parameters
requestedStartPosition int

requestedLoadSize int

pageSize int

placeholdersEnabled boolean

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025年02月10日 UTC.