public class

PositionalDataSource.LoadRangeParams

extends java.lang.Object

 java.lang.Object

↳androidx.paging.PositionalDataSource.LoadRangeParams

Overview

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

Summary

Fields
public final intloadSize

Number of items to load.

public final intstartPosition

Start position of data to load.

Constructors
publicLoadRangeParams(int startPosition, int loadSize)

Methods
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public final int startPosition

Start position of data to load.

Returned data must start at this position.

public final int loadSize

Number of items to load.

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

Constructors

public LoadRangeParams(int startPosition, int loadSize)