added in version 2.0.0
belongs to Maven artifact androidx.paging:paging-common:2.0.0-beta01

PageKeyedDataSource.LoadInitialParams

public static class PageKeyedDataSource.LoadInitialParams
extends Object

java.lang.Object
   ↳ androidx.paging.PageKeyedDataSource.LoadInitialParams<Key>


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

Summary

Fields

public final boolean placeholdersEnabled

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

public final int requestedLoadSize

Requested number of items to load.

Public constructors

PageKeyedDataSource.LoadInitialParams(int requestedLoadSize, boolean placeholdersEnabled)

Inherited methods

Fields

placeholdersEnabled

added in version 2.0.0
public final boolean placeholdersEnabled

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

requestedLoadSize

added in version 2.0.0
public final int requestedLoadSize

Requested number of items to load.

Note that this may be larger than available data.

Public constructors

PageKeyedDataSource.LoadInitialParams

added in version 2.0.0
public PageKeyedDataSource.LoadInitialParams (int requestedLoadSize, 
                boolean placeholdersEnabled)

Parameters
requestedLoadSize int

placeholdersEnabled boolean