added in version 2.0.0
belongs to Maven artifact androidx.paging:paging-common:2.0.0-beta01

PositionalDataSource.LoadRangeParams

public static class PositionalDataSource.LoadRangeParams
extends Object

java.lang.Object
   ↳ androidx.paging.PositionalDataSource.LoadRangeParams


Holder object for inputs to PositionalDataSource.loadRange(LoadRangeParams, LoadRangeCallback).

Summary

Fields

public final int loadSize

Number of items to load.

public final int startPosition

Start position of data to load.

Public constructors

PositionalDataSource.LoadRangeParams(int startPosition, int loadSize)

Inherited methods

Fields

loadSize

added in version 2.0.0
public final int loadSize

Number of items to load.

Returned data must be of this size, unless at end of the list.

startPosition

added in version 2.0.0
public final int startPosition

Start position of data to load.

Returned data must start at this position.

Public constructors

PositionalDataSource.LoadRangeParams

added in version 2.0.0
public PositionalDataSource.LoadRangeParams (int startPosition, 
                int loadSize)

Parameters
startPosition int

loadSize int