PositionalDataSource.LoadInitialParams
public class PositionalDataSource.LoadInitialParams
Holder object for inputs to loadInitial.
Summary
Public fields |
|
|---|---|
final int |
This field is deprecated. PositionalDataSource is deprecated and has been replaced by PagingSource |
final boolean |
This field is deprecated. PositionalDataSource is deprecated and has been replaced by PagingSource |
final int |
This field is deprecated. PositionalDataSource is deprecated and has been replaced by PagingSource |
final int |
This field is deprecated. PositionalDataSource is deprecated and has been replaced by PagingSource |
Public constructors |
|---|
This method is deprecated. PositionalDataSource is deprecated and has been replaced by PagingSource |
Public fields
public final int pageSize
Defines page size acceptable for return values.
List of items passed to the callback must be an integer multiple of page size.
public final boolean placeholdersEnabled
Defines whether placeholders are enabled, and whether the loaded total count will be ignored.
public final int requestedLoadSize
Requested number of items to load.
Note that this may be larger than available data.
public final int requestedStartPosition
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.
Public constructors
publicLoadInitialParams(
int requestedStartPosition,
int requestedLoadSize,
int pageSize,
boolean placeholdersEnabled
)