IviPagingKey

data class IviPagingKey(val dataIndex: Int)

Paging key type. The K parameter of the PagingSource (and friends) types.

To support jumping through a list, the client needs to be able to construct a paging key value based on PagingState.anchorPosition in the PagingSource.getRefreshKey implementation. This implementation can not block on IO. The IVI service framework uses a simple data index as paging key to all the PagingSource.getRefreshKey to be implemented on the client side.

Constructors

Link copied to clipboard
fun IviPagingKey(dataIndex: Int)

Properties

Link copied to clipboard
val dataIndex: Int