PositionalDataSource.LoadInitialParams

Added in 2.0.0
Deprecated in 3.0.0

Holder object for inputs to loadInitial.

Summary

Public constructors

LoadInitialParams(
    requestedStartPosition: Int,
    requestedLoadSize: Int,
    pageSize: Int,
    placeholdersEnabled: Boolean
)
android

Public properties

Int

Defines page size acceptable for return values.

android
Boolean

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

android
Int

Requested number of items to load.

android
Int

Initial load position requested.

android

Public constructors

LoadInitialParams

LoadInitialParams(
    requestedStartPosition: Int,
    requestedLoadSize: Int,
    pageSize: Int,
    placeholdersEnabled: Boolean
)

Public properties

pageSize

val pageSizeInt

Defines page size acceptable for return values.

List of items passed to the callback must be an integer multiple of page size.

placeholdersEnabled

val placeholdersEnabledBoolean

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

requestedLoadSize

val requestedLoadSizeInt

Requested number of items to load.

Note that this may be larger than available data.

requestedStartPosition

val requestedStartPositionInt

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.