UnplacedAwareModifierNode
A [androidx.compose.ui.Modifier.Node] which receives a callback when the layout node is not
UnplacedAwareModifierNode
Interface
Common
interface UnplacedAwareModifierNode : DelegatableNode
A androidx.compose.ui.Modifier.Node which receives a callback when the layout node is not
placed anymore.
Functions
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:
registerOnLayoutRectChangedGlobalPositionAwareModifierNode.onGloballyPositionedLayoutAwareModifierNode.onPlaced- Reacting on a non-null
androidx.compose.ui.layout.Placeable.PlacementScope.coordinatesfrom aLayoutModifierNodeplacement block.