Function

hasAnyDescendant

Verifies whether any descendant of the 3D semantic node satisfies the given condition.

hasAnyDescendant

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

Verifies whether any descendant of the 3D semantic node satisfies the given condition.

Recursively descends the 3D semantic structure to locate deeply nested elements.

Example usage:

|-X
|-A
|-B
|-C1
|-C2

In case of A, we would check the matcher against B, C1 and C2.

Parameters

matcher The semantic criteria for the expected descendant.

Return

a matcher validating the presence of the specified descendant.

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: