<div class='sourceset sourceset-common'>Common</div>

```kotlin
interface PrecomposedSlotHandle
```

Instance of this interface is returned by `precompose` function.

## Properties

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val placeablesCount: Int
```

The amount of placeables composed into this slot.

## Functions

<h2 id="dispose">dispose</h2>

```kotlin
fun dispose()
```

This function allows to dispose the content for the slot which was precomposed previously
via `precompose`.

If this slot was already used during the regular measure pass via
[SubcomposeMeasureScope.subcompose](/jetpack-compose/androidx.compose.ui/ui/interfaces/SubcomposeMeasureScope) this function will do nothing.

This could be useful if after the future calculations this item is not anymore expected
to be used during the measure pass anytime soon.

<hr class="docs-overload-divider">

<h2 id="premeasure-index-constraints">premeasure</h2>

```kotlin
fun premeasure(index: Int, constraints: Constraints)
```

Performs synchronous measure of the placeable at the given `index`.

#### Parameters

| | |
| --- | --- |
| index | the placeable index. Should be smaller than [placeablesCount](#placeablescount). |
| constraints | Constraints to measure this placeable with. |

<hr class="docs-overload-divider">

<h2 id="traversedescendants-key-block">traverseDescendants</h2>

```kotlin
fun traverseDescendants(key: Any?, block: (TraversableNode) -> TraverseDescendantsAction)
```

Conditionally executes `block` for each [Modifier.Node](/jetpack-compose/androidx.compose.ui/ui/classes/Modifier.Node) of this Composition that is a
[TraversableNode](/jetpack-compose/androidx.compose.ui/ui/interfaces/TraversableNode) with a matching [key](/jetpack-compose/androidx.compose.ui/ui/properties/key).

See [androidx.compose.ui.node.traverseDescendants](/jetpack-compose/androidx.compose.ui/ui/functions/traverseDescendants) for the complete semantics of this
function.

<hr class="docs-overload-divider">

<h2 id="getsize-index">getSize</h2>

```kotlin
fun getSize(index: Int): IntSize
```

Retrieves the latest measured size for a given placeable `index`. This will return
`IntSize.Zero` if this is called before [premeasure](#premeasure).