PageKeyedDataSource.LoadInitialParams

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

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

final int

Requested number of items to load.

Public constructors

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

Public fields

placeholdersEnabled

@NonNull
public final boolean placeholdersEnabled

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

requestedLoadSize

@NonNull
public final int requestedLoadSize

Requested number of items to load.

Note that this may be larger than available data.

Public constructors

LoadInitialParams

@NonNull
public final <Key extends Object> LoadInitialParams(
    int requestedLoadSize,
    boolean placeholdersEnabled
)
Parameters
<Key extends Object>

Type of data used to query pages.