LayoutCoordinatesAwareModifierNode

interface LayoutCoordinatesAwareModifierNode : DelegatableSubspaceNode


A DelegatableSubspaceNode whose onLayoutCoordinates callback is invoked when the layout coordinates of the layout node may have changed.

Summary

Public functions

Unit

Called with the final SubspaceLayoutCoordinates of the layout node after placement.

Inherited properties

From androidx.xr.compose.subspace.layout.DelegatableSubspaceNode
SubspaceModifier.Node

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

Public functions

onLayoutCoordinates

Added in 1.0.0-alpha07
fun onLayoutCoordinates(coordinates: SubspaceLayoutCoordinates): Unit

Called with the final SubspaceLayoutCoordinates of the layout node after placement. The coordinates value may or may not have changed since the last callback.