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

hasParent

Verifies the direct parent of a 3D semantic node.

hasParent

Source set: Android
public fun hasParent(matcher: SubspaceSemanticsMatcher): SubspaceSemanticsMatcher

Verifies the direct parent of a 3D semantic node.

This is indispensable for nested spatial compositions, such as a PlanarEmbeddedSubspace composed inside a SpatialPanel, to confirm exact container anchoring.

Parameters

matcher The semantic check to evaluate against the parent node.

Returns

a matcher validating the parent's properties.

Last updated: