# PagedList.Config

Summary:[Nested Classes](https://developer.android.com/reference/android/arch/paging/PagedList.Config#nestedclasses)\|[Fields](https://developer.android.com/reference/android/arch/paging/PagedList.Config#lfields)\|[Inherited Methods](https://developer.android.com/reference/android/arch/paging/PagedList.Config#inhmethods)  

# PagedList.Config

| The`android.arch`Architecture Components packages are no longer maintained. They have been superseded by the corresponding[androidx.\*](https://developer.android.com/jetpack/androidx/migrate)packages. See[androidx.paging.PagedList.Config](https://developer.android.com/reference/androidx/paging/PagedList.Config)instead.

`
public
static


class
PagedList.Config
`  
`

extends Object


``


`

|---|--------------------------------------|
| java.lang.Object                        ||
| ↳ | android.arch.paging.PagedList.Config |

<br />

*** ** * ** ***

Configures how a PagedList loads content from its DataSource.

Use a Config[PagedList.Config.Builder](https://developer.android.com/reference/android/arch/paging/PagedList.Config.Builder)to construct and define custom loading behavior, such as[setPageSize(int)](https://developer.android.com/reference/android/arch/paging/PagedList.Config.Builder#setPageSize(int)), which defines number of items loaded at a time}.

## Summary

|                                                                                                              ### Nested classes                                                                                                               ||
|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` class` | [PagedList.Config.Builder](https://developer.android.com/reference/android/arch/paging/PagedList.Config.Builder) Builder class for[PagedList.Config](https://developer.android.com/reference/android/arch/paging/PagedList.Config). |

|                                                                                                                  ### Fields                                                                                                                  ||
|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` public final boolean` | [enablePlaceholders](https://developer.android.com/reference/android/arch/paging/PagedList.Config#enablePlaceholders) Defines whether the PagedList may display null placeholders, if the DataSource provides them. |
| ` public final int`     | [initialLoadSizeHint](https://developer.android.com/reference/android/arch/paging/PagedList.Config#initialLoadSizeHint) Size hint for initial load of PagedList, often larger than a regular page.                  |
| ` public final int`     | [pageSize](https://developer.android.com/reference/android/arch/paging/PagedList.Config#pageSize) Size of each page loaded by the PagedList.                                                                        |
| ` public final int`     | [prefetchDistance](https://developer.android.com/reference/android/arch/paging/PagedList.Config#prefetchDistance) Prefetch distance which defines how far ahead to load.                                            |

| ### Inherited methods |
|-----------------------|---|
| From class` java.lang.Object ` |-------------------|-------------------------------| | ` 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.

<br />

### initialLoadSizeHint

```
int initialLoadSizeHint
```

Size hint for initial load of PagedList, often larger than a regular page.

<br />

### pageSize

```
int pageSize
```

Size of each page loaded by the PagedList.

<br />

### 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.

<br />

**See also:**

- [loadAround(int)](https://developer.android.com/reference/android/arch/paging/PagedList#loadAround(int))  
-

  ## Interfaces

  - [DataSource.InvalidatedCallback](https://developer.android.com/reference/android/arch/paging/DataSource.InvalidatedCallback)
-

  ## Classes

  - [AsyncPagedListDiffer](https://developer.android.com/reference/android/arch/paging/AsyncPagedListDiffer)
  - [DataSource](https://developer.android.com/reference/android/arch/paging/DataSource)
  - [DataSource.Factory](https://developer.android.com/reference/android/arch/paging/DataSource.Factory)
  - [ItemKeyedDataSource](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource)
  - [ItemKeyedDataSource.LoadCallback](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadCallback)
  - [ItemKeyedDataSource.LoadInitialCallback](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadInitialCallback)
  - [ItemKeyedDataSource.LoadInitialParams](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadInitialParams)
  - [ItemKeyedDataSource.LoadParams](https://developer.android.com/reference/android/arch/paging/ItemKeyedDataSource.LoadParams)
  - [LivePagedListBuilder](https://developer.android.com/reference/android/arch/paging/LivePagedListBuilder)
  - [PagedList](https://developer.android.com/reference/android/arch/paging/PagedList)
  - [PagedList.BoundaryCallback](https://developer.android.com/reference/android/arch/paging/PagedList.BoundaryCallback)
  - [PagedList.Builder](https://developer.android.com/reference/android/arch/paging/PagedList.Builder)
  - [PagedList.Callback](https://developer.android.com/reference/android/arch/paging/PagedList.Callback)
  - [PagedList.Config](https://developer.android.com/reference/android/arch/paging/PagedList.Config)
  - [PagedList.Config.Builder](https://developer.android.com/reference/android/arch/paging/PagedList.Config.Builder)
  - [PagedListAdapter](https://developer.android.com/reference/android/arch/paging/PagedListAdapter)
  - [PageKeyedDataSource](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource)
  - [PageKeyedDataSource.LoadCallback](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource.LoadCallback)
  - [PageKeyedDataSource.LoadInitialCallback](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource.LoadInitialCallback)
  - [PageKeyedDataSource.LoadInitialParams](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource.LoadInitialParams)
  - [PageKeyedDataSource.LoadParams](https://developer.android.com/reference/android/arch/paging/PageKeyedDataSource.LoadParams)
  - [PositionalDataSource](https://developer.android.com/reference/android/arch/paging/PositionalDataSource)
  - [PositionalDataSource.LoadInitialCallback](https://developer.android.com/reference/android/arch/paging/PositionalDataSource.LoadInitialCallback)
  - [PositionalDataSource.LoadInitialParams](https://developer.android.com/reference/android/arch/paging/PositionalDataSource.LoadInitialParams)
  - [PositionalDataSource.LoadRangeCallback](https://developer.android.com/reference/android/arch/paging/PositionalDataSource.LoadRangeCallback)
  - [PositionalDataSource.LoadRangeParams](https://developer.android.com/reference/android/arch/paging/PositionalDataSource.LoadRangeParams)
  - [RxPagedListBuilder](https://developer.android.com/reference/android/arch/paging/RxPagedListBuilder)