Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

PageKeyedDataSource.LoadInitialParams

public static class PageKeyedDataSource.LoadInitialParams
extends Object

java.lang.Object
   ↳ android.arch.paging.PageKeyedDataSource.LoadInitialParams<Key>


Holder object for inputs to loadInitial(LoadInitialParams, LoadInitialCallback).

Summary

Fields

public final boolean placeholdersEnabled

Defines whether placeholders are enabled, and whether the total count passed to onResult(List, int, int, Key, Key) will be ignored.

public final int requestedLoadSize

Requested number of items to load.

Public constructors

PageKeyedDataSource.LoadInitialParams(int requestedLoadSize, boolean placeholdersEnabled)

Inherited methods

Fields

placeholdersEnabled

boolean placeholdersEnabled

Defines whether placeholders are enabled, and whether the total count passed to onResult(List, int, int, Key, Key) will be ignored.

requestedLoadSize

int requestedLoadSize

Requested number of items to load.

Note that this may be larger than available data.

Public constructors

PageKeyedDataSource.LoadInitialParams

PageKeyedDataSource.LoadInitialParams (int requestedLoadSize, 
                boolean placeholdersEnabled)

Parameters
requestedLoadSize int

placeholdersEnabled boolean