androidx.compose.ui.layout
OnPlacedModifier
Interface · from org.jetbrains.compose.ui:ui:1.12.2
No hand-written docs yet.
A modifier whose 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.
interface OnPlacedModifier : Modifier.Element
Is a
Functions
onPlaced
fun onPlaced(coordinates: LayoutCoordinates)
onPlaced is called after parent LayoutModifier and parent layout gets placed and before any child LayoutModifier is placed.
Library docs
A modifier whose 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.