Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

LoadParams

open class LoadParams<Key : Any>
kotlin.Any
   ↳ androidx.paging.ItemKeyedDataSource.LoadParams

Holder object for inputs to loadBefore and loadAfter.

Summary

Public constructors
<init>(key: Key, requestedLoadSize: Int)

Holder object for inputs to loadBefore and loadAfter.

Properties
Key

Load items before/after this key.

Int

Requested number of items to load.

Public constructors

<init>

LoadParams(
    key: Key,
    requestedLoadSize: Int)

Holder object for inputs to loadBefore and loadAfter.

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

Properties

key

val key: Key

Load items before/after this key.

Returned data must begin directly adjacent to this position.

requestedLoadSize

val requestedLoadSize: Int

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.