{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public class ItemKeyedDataSource.LoadInitialParams<Key extends Object>
Holder object for inputs to loadInitial
.
Parameters | |
---|---|
<Key extends Object> |
Type of data used to query |
Public fields |
|
---|---|
final boolean |
Defines whether placeholders are enabled, and whether the loaded total count will be ignored. |
final @Nullable Key |
Load items around this key, or at the beginning of the data set if |
final int |
Requested number of items to load. |
Public constructors |
|
---|---|
<Key extends Object> LoadInitialParams( |
@NonNull
public final boolean placeholdersEnabled
Defines whether placeholders are enabled, and whether the loaded total count will be ignored.
@Nullable
public final @Nullable 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.
@NonNull
public final int requestedLoadSize
Requested number of items to load.
Note that this may be larger than available data.
@NonNull
public final <Key extends Object> LoadInitialParams(
@Nullable Key requestedInitialKey,
int requestedLoadSize,
boolean placeholdersEnabled
)
Parameters | |
---|---|
<Key extends Object> |
Type of data used to query |