Common
interface LayoutAwareModifierNode : MeasuredSizeAwareModifierNode, DelegatableNode
A androidx.compose.ui.Modifier.Node which receives various callbacks in response to local changes in layout.
This is the androidx.compose.ui.Modifier.Node equivalent of androidx.compose.ui.layout.OnRemeasuredModifier and androidx.compose.ui.layout.OnPlacedModifier
Functions
onPlaced
fun onPlaced(coordinates: LayoutCoordinates)
onPlaced is called after the parent LayoutModifier and parent layout has been placed and before child LayoutModifier is placed. This allows child LayoutModifier to adjust its own placement based on where the parent is.
If you only need to access the current LayoutCoordinates at a single point in time from outside this method, use requireLayoutCoordinates.
onRemeasured
override fun onRemeasured(size: IntSize)
This method is called when the layout content is remeasured. The most common usage is onSizeChanged.