Interface to paged list that could contain placeholders.
Contains a paged list's snapshot state. For example, in the context of PagingDataEvent.Refresh exposed by PagingDataPresenter, each PlaceholderPaddedList represents a generation of paged data whereby a new generation is distinguished with a refresh load.
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 2025-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-10 UTC."],[],[],null,["# PlaceholderPaddedList\n=====================\n\nArtifact: [androidx.paging:paging-common](/jetpack/androidx/releases/paging) \n[View Source](https://cs.android.com/search?q=file:androidx/paging/PlaceholderPaddedList.kt+class:androidx.paging.PlaceholderPaddedList) \nAdded in [3.3.0](/jetpack/androidx/releases/paging#3.3.0)\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/paging/PlaceholderPaddedList \"View this page in Java\")\nCommon/AllAndroid/JVMNative/C/iOSJavaScript\n - Cmn \n\n ```\n interface PlaceholderPaddedList\u003cT : Any?\u003e\n ```\n\n*** ** * ** ***\n\nInterface to paged list that could contain placeholders.\n\nContains a paged list's snapshot state. For example, in the context of [PagingDataEvent.Refresh](/reference/kotlin/androidx/paging/PagingDataEvent.Refresh) exposed by [PagingDataPresenter](/reference/kotlin/androidx/paging/PagingDataPresenter), each [PlaceholderPaddedList](/reference/kotlin/androidx/paging/PlaceholderPaddedList) represents a generation of paged data whereby a new generation is distinguished with a refresh load.\n\nSummary\n-------\n\n| ### Public functions |\n|----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|\n| `T` | [getItem](/reference/kotlin/androidx/paging/PlaceholderPaddedList#getItem(kotlin.Int))`(index: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` | Cmn |\n\n| ### Public properties |\n|-----------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------|-----|\n| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [dataCount](/reference/kotlin/androidx/paging/PlaceholderPaddedList#dataCount()) | Cmn |\n| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [placeholdersAfter](/reference/kotlin/androidx/paging/PlaceholderPaddedList#placeholdersAfter()) | Cmn |\n| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [placeholdersBefore](/reference/kotlin/androidx/paging/PlaceholderPaddedList#placeholdersBefore()) | Cmn |\n| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [size](/reference/kotlin/androidx/paging/PlaceholderPaddedList#size()) | Cmn |\n\nPublic functions\n----------------\n\n### getItem\n\nCmn \nAdded in [3.3.0](/jetpack/androidx/releases/paging#3.3.0) \n\n```\nfun getItem(index: Int): T\n```\n\nPublic properties\n-----------------\n\n### dataCount\n\nCmn \nAdded in [3.3.0](/jetpack/androidx/releases/paging#3.3.0) \n\n```\nval dataCount: Int\n``` \n\n### placeholdersAfter\n\nCmn \nAdded in [3.3.0](/jetpack/androidx/releases/paging#3.3.0) \n\n```\nval placeholdersAfter: Int\n``` \n\n### placeholdersBefore\n\nCmn \nAdded in [3.3.0](/jetpack/androidx/releases/paging#3.3.0) \n\n```\nval placeholdersBefore: Int\n``` \n\n### size\n\nCmn \nAdded in [3.3.0](/jetpack/androidx/releases/paging#3.3.0) \n\n```\nval size: Int\n```"]]