[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/androidx/paging/PageKeyedDataSource.LoadParams [Back]  [Original]

PageKeyedDataSource.LoadParams  |  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.

PageKeyedDataSource.LoadParams

Added in 2.0.0
Deprecated in 3.0.0

public class PageKeyedDataSource.LoadParams<Key extends Object>


This class is deprecated.
PageKeyedDataSource is deprecated and has been replaced by PagingSource

Holder object for inputs to loadBefore and loadAfter.

Parameters
<Key extends Object>

Type of data used to query pages.

Summary

Public fields

final @NonNull Key

This field is deprecated. PageKeyedDataSource is deprecated and has been replaced by PagingSource

final int

This field is deprecated. PageKeyedDataSource is deprecated and has been replaced by PagingSource

Public constructors

<Key extends Object> LoadParams(@NonNull Key key, int requestedLoadSize)

This method is deprecated. PageKeyedDataSource is deprecated and has been replaced by PagingSource

Public fields

key

Added in 2.0.0
Deprecated in 3.0.0
public final @NonNull Key key
This field is deprecated.
PageKeyedDataSource is deprecated and has been replaced by PagingSource

Load items before/after this key.

Returned data must begin directly adjacent to this position.

requestedLoadSize

Added in 2.0.0
Deprecated in 3.0.0
public final int requestedLoadSize
This field is deprecated.
PageKeyedDataSource is deprecated and has been replaced by PagingSource

Requested number of items to load.

Returned page can be of this size, but it may be altered if that is easier, e.g. a network data source where the backend defines page size.

Public constructors

LoadParams

public <Key extends Object> LoadParams(@NonNull Key key, int requestedLoadSize)
This method is deprecated.
PageKeyedDataSource is deprecated and has been replaced by PagingSource
Parameters
<Key extends Object>

Type of data used to query pages.

@NonNull Key key

Load items before/after this key.

Returned data must begin directly adjacent to this position.

int requestedLoadSize

Requested number of items to load.

Returned page can be of this size, but it may be altered if that is easier, e.g. a network data source where the backend defines page size.

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 2026-06-24 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 2026-06-24 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page