# PlaceholderPaddedList

# PlaceholderPaddedList

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

*** ** * ** ***

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

  ```
  interface PlaceholderPaddedList<T : Any?>
  ```

*** ** * ** ***

Interface to paged list that could contain placeholders.

Contains a paged list's snapshot state. For example, in the context of[PagingDataEvent.Refresh](https://developer.android.com/reference/kotlin/androidx/paging/PagingDataEvent.Refresh)exposed by[PagingDataPresenter](https://developer.android.com/reference/kotlin/androidx/paging/PagingDataPresenter), each[PlaceholderPaddedList](https://developer.android.com/reference/kotlin/androidx/paging/PlaceholderPaddedList)represents a generation of paged data whereby a new generation is distinguished with a refresh load.

## Summary

| ### Public functions |
|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| `T`                  | [getItem](https://developer.android.com/reference/kotlin/androidx/paging/PlaceholderPaddedList#getItem(kotlin.Int))`(index: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` | Cmn |

|                            ### Public properties                            |
|-----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|-----|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [dataCount](https://developer.android.com/reference/kotlin/androidx/paging/PlaceholderPaddedList#dataCount())                   | Cmn |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [placeholdersAfter](https://developer.android.com/reference/kotlin/androidx/paging/PlaceholderPaddedList#placeholdersAfter())   | Cmn |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [placeholdersBefore](https://developer.android.com/reference/kotlin/androidx/paging/PlaceholderPaddedList#placeholdersBefore()) | Cmn |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [size](https://developer.android.com/reference/kotlin/androidx/paging/PlaceholderPaddedList#size())                             | Cmn |

## Public functions

### getItem

Cmn  
Added in[3.3.0](https://developer.android.com/jetpack/androidx/releases/paging#3.3.0)  

```
fun getItem(index: Int): T
```

## Public properties

### dataCount

Cmn  
Added in[3.3.0](https://developer.android.com/jetpack/androidx/releases/paging#3.3.0)  

```
val dataCount: Int
```  

### placeholdersAfter

Cmn  
Added in[3.3.0](https://developer.android.com/jetpack/androidx/releases/paging#3.3.0)  

```
val placeholdersAfter: Int
```  

### placeholdersBefore

Cmn  
Added in[3.3.0](https://developer.android.com/jetpack/androidx/releases/paging#3.3.0)  

```
val placeholdersBefore: Int
```  

### size

Cmn  
Added in[3.3.0](https://developer.android.com/jetpack/androidx/releases/paging#3.3.0)  

```
val size: Int
```