{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

ItemKeyedDataSource.LoadParams

{% setvar page_path %}androidx/paging/ItemKeyedDataSource.LoadParams.html{% endsetvar %} {% setvar can_switch %}1{% endsetvar %} {% include "reference/_java_switcher2.md" %}

public class ItemKeyedDataSource.LoadParams<Key extends Object>


Holder object for inputs to loadBefore and loadAfter.

Parameters
<Key extends Object>

Type of data used to query Value types out of the DataSource.

Summary

Public fields

final @NonNull Key

Load items before/after this key.

final int

Requested number of items to load.

Public constructors

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

Public fields

key

@NonNull
public final @NonNull Key key

Load items before/after this key.

Returned data must begin directly adjacent to this position.

requestedLoadSize

@NonNull
public final 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.

Public constructors

LoadParams

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

Type of data used to query Value types out of the DataSource.