PageKeyedDataSource.LoadInitialParams

Added in 2.0.0
Deprecated in 3.0.0

public class PageKeyedDataSource.LoadInitialParams<Key extends Object>


Holder object for inputs to loadInitial.

Parameters
<Key extends Object>

Type of data used to query pages.

Summary

Public fields

final boolean

This field is deprecated. PageKeyedDataSource is deprecated and has been replaced by PagingSource

final int

This field is deprecated. PageKeyedDataSource is deprecated and has been replaced by PagingSource

Public constructors

<Key extends Object> LoadInitialParams(
    int requestedLoadSize,
    boolean placeholdersEnabled
)

This method is deprecated. PageKeyedDataSource is deprecated and has been replaced by PagingSource

Public fields

placeholdersEnabled

Added in 2.0.0
Deprecated in 3.0.0
public final boolean placeholdersEnabled

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

requestedLoadSize

Added in 2.0.0
Deprecated in 3.0.0
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(
    int requestedLoadSize,
    boolean placeholdersEnabled
)
Parameters
<Key extends Object>

Type of data used to query pages.

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.