Google berkomitmen untuk mendorong terwujudnya keadilan ras bagi komunitas Kulit Hitam. Lihat caranya.

LoadInitialParams

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

Holder object for inputs to loadInitial.

Summary

Public constructors
<init>(requestedInitialKey: Key?, requestedLoadSize: Int, placeholdersEnabled: Boolean)

Holder object for inputs to loadInitial.

Properties
Boolean

Defines whether placeholders are enabled, and whether the loaded total count will be ignored.

Key?

Load items around this key, or at the beginning of the data set if null is passed.

Int

Requested number of items to load.

Public constructors

<init>

LoadInitialParams(
    requestedInitialKey: Key?,
    requestedLoadSize: Int,
    placeholdersEnabled: Boolean)

Holder object for inputs to loadInitial.

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

Properties

placeholdersEnabled

val placeholdersEnabled: Boolean

Defines whether placeholders are enabled, and whether the loaded total count will be ignored.

requestedInitialKey

val requestedInitialKey: Key?

Load items around this key, or at the beginning of the data set if null is passed.

Note that this key is generally a hint, and may be ignored if you want to always load from the beginning.

requestedLoadSize

val requestedLoadSize: Int

Requested number of items to load.

Note that this may be larger than available data.