ItemKeyedDataSource.LoadParams
-
android
open class ItemKeyedDataSource.LoadParams<Key : Any>
Holder object for inputs to loadBefore and loadAfter.
| Parameters | |
|---|---|
<Key : Any> |
Type of data used to query |
Summary
Public constructors |
|
|---|---|
<Key : Any> This function is deprecated. ItemKeyedDataSource is deprecated and has been replaced by PagingSource |
android
|
Public properties |
||
|---|---|---|
Key |
This property is deprecated. ItemKeyedDataSource is deprecated and has been replaced by PagingSource |
android
|
Int |
This property is deprecated. ItemKeyedDataSource is deprecated and has been replaced by PagingSource |
android
|
Public constructors
LoadParams
<Key : Any>LoadParams(key: Key, requestedLoadSize: Int)
| Parameters | |
|---|---|
<Key : Any> |
Type of data used to query |
key: Key |
Load items before/after this key. Returned data must begin directly adjacent to this position. |
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. |
Public 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.