[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadInitialParams [Back]  [Original]

ItemKeyedDataSource.LoadInitialParams  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.

ItemKeyedDataSource.LoadInitialParams

public static class ItemKeyedDataSource.LoadInitialParams
extends Object

java.lang.Object
   ↳ android.arch.paging.ItemKeyedDataSource.LoadInitialParams<Key>


Holder object for inputs to , android.arch.paging.ItemKeyedDataSource.LoadInitialCallback)">loadInitial(LoadInitialParams, LoadInitialCallback).

Summary

Fields

public final boolean placeholdersEnabled

Defines whether placeholders are enabled, and whether the total count passed to , int, int)">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

boolean placeholdersEnabled

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

requestedInitialKey

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

int requestedLoadSize

Requested number of items to load.

Note that this may be larger than available data.

Public constructors

ItemKeyedDataSource.LoadInitialParams

ItemKeyedDataSource.LoadInitialParams (Key requestedInitialKey, 
                int requestedLoadSize, 
                boolean placeholdersEnabled)

Parameters
requestedInitialKey Key

requestedLoadSize 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.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page