---
title: "UnplacedAwareModifierNode"
description: "A [androidx.compose.ui.Modifier.Node] which receives a callback when the layout node is not
placed anymore."
type: "interface"
---

<div class='type'>Interface</div>


<a id='references'></a>

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



```kotlin
interface UnplacedAwareModifierNode : DelegatableNode
```


A `androidx.compose.ui.Modifier.Node` which receives a callback when the layout node is not
placed anymore.


## Functions

```kotlin
fun onUnplaced()
```


This method is called when the layout was placed earlier, and is not placed anymore. It
happens when some of the parents still compose this child, but don't place a corresponding
`androidx.compose.ui.layout.Placeable`, or when this child is completely removed from the
tree after being placed earlier. Not placed children are not drawn and doesn't receive
pointer input events.

Those apis could be used to be notified when the layout is placed:
- `registerOnLayoutRectChanged`
- `GlobalPositionAwareModifierNode.onGloballyPositioned`
- `LayoutAwareModifierNode.onPlaced`
- Reacting on a non-null `androidx.compose.ui.layout.Placeable.PlacementScope.coordinates` from a `LayoutModifierNode` placement block.



