LoadRangeParams

open class LoadRangeParams
kotlin.Any
   ↳ androidx.paging.PositionalDataSource.LoadRangeParams

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

Summary

Public constructors

<init>(startPosition: Int, loadSize: Int)

Properties

Int

Number of items to load.

Int

Start position of data to load.

Public constructors

<init>

LoadRangeParams(startPosition: Int, loadSize: Int)

Properties

loadSize

val loadSize: Int

Number of items to load.

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

startPosition

val startPosition: Int

Start position of data to load.

Returned data must start at this position.