ItemKeyedDataSource.LoadInitialParams
public class ItemKeyedDataSource.LoadInitialParams<Key extends Object>
Holder object for inputs to loadInitial.
| Parameters | |
|---|---|
<Key extends Object> |
Type of data used to query |
Summary
Public fields |
|
|---|---|
final boolean |
This field is deprecated. ItemKeyedDataSource is deprecated and has been replaced by PagingSource |
final Key |
This field is deprecated. ItemKeyedDataSource is deprecated and has been replaced by PagingSource |
final int |
This field is deprecated. ItemKeyedDataSource is deprecated and has been replaced by PagingSource |
Public constructors |
|---|
<Key extends Object> This method is deprecated. ItemKeyedDataSource is deprecated and has been replaced by PagingSource |
Public fields
public final boolean placeholdersEnabled
Defines whether placeholders are enabled, and whether the loaded total count will be ignored.
public final Key requestedInitialKey
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.
public final int requestedLoadSize
Requested number of items to load.
Note that this may be larger than available data.
Public constructors
LoadInitialParams
public <Key extends Object>LoadInitialParams(
Key requestedInitialKey,
int requestedLoadSize,
boolean placeholdersEnabled
)
| Parameters | |
|---|---|
<Key extends Object> |
Type of data used to query |
Key requestedInitialKey |
Load items around this key, or at the beginning of the data set if Note that this key is generally a hint, and may be ignored if you want to always load from the beginning. |
int requestedLoadSize |
Requested number of items to load. Note that this may be larger than available data. |
boolean placeholdersEnabled |
Defines whether placeholders are enabled, and whether the loaded total count will be ignored. |