Function

hasAnyChild

Verifies whether any immediate child of the 3D semantic node satisfies the given criteria.

hasAnyChild

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

Verifies whether any immediate child of the 3D semantic node satisfies the given criteria.

Useful when testing spatial composite layouts or multiple anchored floating panels grouped under a common parent semantic container.

Parameters

matcher The semantic criteria for the expected child.

Return

a matcher validating the node's children.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: