Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 2.0.0
belongs to Maven artifact androidx.paging:paging-common:2.0.0-rc01

ItemKeyedDataSource.LoadInitialParams

public static class ItemKeyedDataSource.LoadInitialParams
extends Object

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


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

Summary

Fields

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.

public final Key requestedInitialKey

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

public final int requestedLoadSize

Requested number of items to load.

Public constructors

ItemKeyedDataSource.LoadInitialParams(Key requestedInitialKey, 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 ItemKeyedDataSource.LoadInitialCallback.onResult(List, int, int) will be ignored.

requestedInitialKey

added in version 2.0.0
public final Key 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.

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

ItemKeyedDataSource.LoadInitialParams

added in version 2.0.0
public ItemKeyedDataSource.LoadInitialParams (Key requestedInitialKey, 
                int requestedLoadSize, 
                boolean placeholdersEnabled)

Parameters
requestedInitialKey Key

requestedLoadSize int

placeholdersEnabled boolean