For example, if this PinnableContainer is an item of lazy list releasing the pinning will allow lazy list to stop composing the item when it is not visible.
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-05-15 UTC.
[null,null,["Last updated 2025-05-15 UTC."],[],[],null,["# PinnableContainer.PinnedHandle\n==============================\n\nArtifact: [androidx.compose.ui:ui](/jetpack/androidx/releases/compose-ui) \n[View Source](https://cs.android.com/search?q=file:androidx/compose/ui/layout/PinnableContainer.kt+class:androidx.compose.ui.layout.PinnableContainer.PinnedHandle) \nAdded in [1.4.0](/jetpack/androidx/releases/compose-ui#1.4.0)\nCommon/AllAndroid/JVM\n - Cmn \n\n ```\n fun interface PinnableContainer.PinnedHandle\n ```\n\n*** ** * ** ***\n\nThis is an object returned by [pin](/reference/kotlin/androidx/compose/ui/layout/PinnableContainer#pin()) which allows to release the pinning.\n\nSummary\n-------\n\n| ### Public functions |\n|-------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|-----|\n| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [release](/reference/kotlin/androidx/compose/ui/layout/PinnableContainer.PinnedHandle#release())`()` Releases the pin. | Cmn |\n\nPublic functions\n----------------\n\n### release\n\nCmn \nAdded in [1.4.0](/jetpack/androidx/releases/compose-ui#1.4.0) \n\n```\nfun release(): Unit\n```\n\nReleases the pin.\n\nFor example, if this [PinnableContainer](/reference/kotlin/androidx/compose/ui/layout/PinnableContainer) is an item of lazy list releasing the pinning will allow lazy list to stop composing the item when it is not visible."]]