{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
open class PositionalDataSource.LoadInitialParams
Holder object for inputs to loadInitial
.
Public properties |
|
---|---|
Int |
Defines page size acceptable for return values. |
Boolean |
Defines whether placeholders are enabled, and whether the loaded total count will be ignored. |
Int |
Requested number of items to load. |
Int |
Initial load position requested. |
Public constructors |
|
---|---|
LoadInitialParams( |
val pageSize: Int
Defines page size acceptable for return values.
List of items passed to the callback must be an integer multiple of page size.
val placeholdersEnabled: Boolean
Defines whether placeholders are enabled, and whether the loaded total count will be ignored.
val requestedLoadSize: Int
Requested number of items to load.
Note that this may be larger than available data.
val requestedStartPosition: Int
Initial load position requested.
Note that this may not be within the bounds of your data set, it may need to be adjusted before you execute your load.
LoadInitialParams(
requestedStartPosition: Int,
requestedLoadSize: Int,
pageSize: Int,
placeholdersEnabled: Boolean
)