androidx.compose.ui.node
GlobalPositionAwareModifierNode
Interface · from org.jetbrains.compose.ui:ui:1.12.2
No hand-written docs yet.
A androidx.compose.ui.Modifier.Node whose onGloballyPositioned is called with the final LayoutCoordinates of the Layout when the global position of the content may have changed. Note that it will be called after a composition when the coordinates are finalized.
interface GlobalPositionAwareModifierNode : DelegatableNode
Is a
Functions
onGloballyPositioned
fun onGloballyPositioned(coordinates: LayoutCoordinates)
Called with the final LayoutCoordinates of the Layout after measuring. Note that it will be called after a composition when the coordinates are finalized. The position in the modifier chain makes no difference in either the LayoutCoordinates argument or when the onGloballyPositioned is called.
Library docs
A androidx.compose.ui.Modifier.Node whose onGloballyPositioned is called with the final
LayoutCoordinates of the Layout when the global position of the content may have changed. Note
that it will be called after a composition when the coordinates are finalized.
This is the androidx.compose.ui.Modifier.Node equivalent of
androidx.compose.ui.layout.OnGloballyPositionedModifier
Usage example: