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 PagedList.Config

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

Object clone()
boolean equals(Object arg0)
void finalize()
final Class<?> getClass()
int hashCode()
final void notify()
final void notifyAll()
String toString()
final void wait(long arg0, int arg1)
final void wait(long arg0)
final void wait()

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: