# PagedList.Config

# PagedList.Config

Artifact:[androidx.paging:paging-common](https://developer.android.com/jetpack/androidx/releases/paging)  
[View Source](https://cs.android.com/search?q=file:androidx/paging/PagedList.kt+class:androidx.paging.PagedList.Config)  
Added in[2.0.0](https://developer.android.com/jetpack/androidx/releases/paging#2.0.0)  
Deprecated in[3.0.0](https://developer.android.com/jetpack/androidx/releases/paging#3.0.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/paging/PagedList.Config "View this page in Java")
Common/AllAndroid/JVMNative/C/iOSJavaScript
  - android  

  ```
  class PagedList.Config
  ```

*** ** * ** ***

| **This class is deprecated.**   
| PagedList is deprecated and has been replaced by PagingData

Configures how a[PagedList](https://developer.android.com/reference/kotlin/androidx/paging/PagedList)loads content from its[PagingSource](https://developer.android.com/reference/kotlin/androidx/paging/PagingSource).

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

## Summary

|                                                                                                   ### Nested types                                                                                                   |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[PagedList.Config.Builder](https://developer.android.com/reference/kotlin/androidx/paging/PagedList.Config.Builder) **This class is deprecated.**PagedList is deprecated and has been replaced by PagingData |

|                                ### Public properties                                |
|-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [enablePlaceholders](https://developer.android.com/reference/kotlin/androidx/paging/PagedList.Config#enablePlaceholders()) **This property is deprecated.**PagedList is deprecated and has been replaced by PagingData   | android |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | [initialLoadSizeHint](https://developer.android.com/reference/kotlin/androidx/paging/PagedList.Config#initialLoadSizeHint()) **This property is deprecated.**PagedList is deprecated and has been replaced by PagingData | android |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | [maxSize](https://developer.android.com/reference/kotlin/androidx/paging/PagedList.Config#maxSize()) **This property is deprecated.**PagedList is deprecated and has been replaced by PagingData                         | android |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | [pageSize](https://developer.android.com/reference/kotlin/androidx/paging/PagedList.Config#pageSize()) **This property is deprecated.**PagedList is deprecated and has been replaced by PagingData                       | android |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | [prefetchDistance](https://developer.android.com/reference/kotlin/androidx/paging/PagedList.Config#prefetchDistance()) **This property is deprecated.**PagedList is deprecated and has been replaced by PagingData       | android |

## Public properties

### enablePlaceholders

android  
Added in[2.0.0](https://developer.android.com/jetpack/androidx/releases/paging#2.0.0)  
Deprecated in[3.0.0](https://developer.android.com/jetpack/androidx/releases/paging#3.0.0)  

```
val enablePlaceholders: Boolean
```
| **This property is deprecated.**   
| PagedList is deprecated and has been replaced by PagingData

Defines whether the[PagedList](https://developer.android.com/reference/kotlin/androidx/paging/PagedList)may display null placeholders, if the[PagingSource](https://developer.android.com/reference/kotlin/androidx/paging/PagingSource)provides them.  

### initialLoadSizeHint

android  
Added in[2.0.0](https://developer.android.com/jetpack/androidx/releases/paging#2.0.0)  
Deprecated in[3.0.0](https://developer.android.com/jetpack/androidx/releases/paging#3.0.0)  

```
val initialLoadSizeHint: Int
```
| **This property is deprecated.**   
| PagedList is deprecated and has been replaced by PagingData

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

### maxSize

android  
Added in[2.1.0](https://developer.android.com/jetpack/androidx/releases/paging#2.1.0)  
Deprecated in[3.0.0](https://developer.android.com/jetpack/androidx/releases/paging#3.0.0)  

```
val maxSize: Int
```
| **This property is deprecated.**   
| PagedList is deprecated and has been replaced by PagingData

Defines the maximum number of items that may be loaded into this pagedList before pages should be dropped.

If set to[PagedList.Config.Companion.MAX_SIZE_UNBOUNDED](https://developer.android.com/reference/kotlin/androidx/paging/PagedList.Config.Companion#MAX_SIZE_UNBOUNDED()), pages will never be dropped.  

|                                                               See also                                                               |
|--------------------------------------------------------------------------------------------------------------------------------------|---|
| [MAX_SIZE_UNBOUNDED](https://developer.android.com/reference/kotlin/androidx/paging/PagedList.Config.Companion#MAX_SIZE_UNBOUNDED()) |   |
| [setMaxSize](https://developer.android.com/reference/kotlin/androidx/paging/PagedList.Config.Builder#setMaxSize(kotlin.Int))         |   |

### pageSize

android  
Added in[2.0.0](https://developer.android.com/jetpack/androidx/releases/paging#2.0.0)  
Deprecated in[3.0.0](https://developer.android.com/jetpack/androidx/releases/paging#3.0.0)  

```
val pageSize: Int
```
| **This property is deprecated.**   
| PagedList is deprecated and has been replaced by PagingData

Size of each page loaded by the PagedList.  

### prefetchDistance

android  
Added in[2.0.0](https://developer.android.com/jetpack/androidx/releases/paging#2.0.0)  
Deprecated in[3.0.0](https://developer.android.com/jetpack/androidx/releases/paging#3.0.0)  

```
val prefetchDistance: Int
```
| **This property is deprecated.**   
| PagedList is deprecated and has been replaced by PagingData

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                                                    |
|---------------------------------------------------------------------------------------------------------------|---|
| [loadAround](https://developer.android.com/reference/kotlin/androidx/paging/PagedList#loadAround(kotlin.Int)) |   |