ItemKeyedDataSource.LoadParams

Added in 2.0.0
Deprecated in 3.0.0

public class ItemKeyedDataSource.LoadParamsObject>

Holder object for inputs to loadBefore and loadAfter.

Parameters
Object>

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

Summary

Public fields

final @NonNull Key

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

final int

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

Public constructors

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

This method is deprecated. ItemKeyedDataSource 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

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

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 Object> LoadParams(@NonNull Key key, int requestedLoadSize)
Parameters
Object>

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

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