PagedList.Config
public
static
class
PagedList.Config
extends Object
java.lang.Object | |
↳ | android.arch.paging.PagedList.Config |
Configures how a PagedList loads content from its DataSource.
Use a Config PagedList.Config.Builder
to construct and define custom loading behavior, such as
setPageSize(int)
, which defines number of items loaded at a time}.
Summary
Nested classes | |
---|---|
class |
PagedList.Config.Builder
Builder class for |
Fields | |
---|---|
public
final
boolean |
enablePlaceholders
Defines whether the PagedList may display null placeholders, if the DataSource provides them. |
public
final
int |
initialLoadSizeHint
Size hint for initial load of PagedList, often larger than a regular page. |
public
final
int |
pageSize
Size of each page loaded by the PagedList. |
public
final
int |
prefetchDistance
Prefetch distance which defines how far ahead to load. |
Inherited methods | |
---|---|
Fields
enablePlaceholders
boolean enablePlaceholders
Defines whether the PagedList may display null placeholders, if the DataSource provides them.
initialLoadSizeHint
int initialLoadSizeHint
Size hint for initial load of PagedList, often larger than a regular page.
pageSize
int pageSize
Size of each page loaded by the PagedList.
prefetchDistance
int prefetchDistance
Prefetch distance which defines how far ahead to load.
If this value is set to 50, the paged list will attempt to load 50 items in advance of data that's already been accessed.
See also:
Interfaces
Classes
- AsyncPagedListDiffer
- DataSource
- DataSource.Factory
- ItemKeyedDataSource
- ItemKeyedDataSource.LoadCallback
- ItemKeyedDataSource.LoadInitialCallback
- ItemKeyedDataSource.LoadInitialParams
- ItemKeyedDataSource.LoadParams
- LivePagedListBuilder
- PagedList
- PagedList.BoundaryCallback
- PagedList.Builder
- PagedList.Callback
- PagedList.Config
- PagedList.Config.Builder
- PagedListAdapter
- PageKeyedDataSource
- PageKeyedDataSource.LoadCallback
- PageKeyedDataSource.LoadInitialCallback
- PageKeyedDataSource.LoadInitialParams
- PageKeyedDataSource.LoadParams
- PositionalDataSource
- PositionalDataSource.LoadInitialCallback
- PositionalDataSource.LoadInitialParams
- PositionalDataSource.LoadRangeCallback
- PositionalDataSource.LoadRangeParams
- RxPagedListBuilder
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.