UnplacedStateAwareModifierNode


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

Summary

Public functions

Unit

This method is called when the layout was placed earlier, and is not placed anymore.

Cmn

Inherited functions

From androidx.compose.ui.node.DelegatableNode
open Unit

Invoked when the density changes for this node.

Cmn
open Unit

Invoked when the layout direction changes for this node.

Cmn

Inherited properties

From androidx.compose.ui.node.DelegatableNode
Modifier.Node

A reference of the Modifier.Node that holds this node's position in the node hierarchy.

Cmn

Public functions

onUnplaced

fun onUnplaced(): Unit

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: