Compose Unstyled 2.0 is out! Check the official announcement blog ->
Interface

SubspaceLayoutAwareModifierNode

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

Source set: Android
public interface SubspaceLayoutAwareModifierNode : SubspaceMeasuredSizeAwareModifierNode

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

Functions

onPlaced

public fun onPlaced(coordinates: SubspaceLayoutCoordinates)

onPlaced is called after the parent androidx.xr.compose.subspace.layout.SubspaceModifier and parent layout has been placed and before child androidx.xr.compose.subspace.layout.SubspaceModifier is placed. This allows child androidx.xr.compose.subspace.layout.SubspaceModifier to adjust its own placement based on where the parent is.

Parameters

coordinates The layout coordinates of the node.

onRemeasured

override fun onRemeasured(size: IntVolumeSize)

Last updated: