Function

hasAnyAncestor

Verifies whether any ancestor in the path to the 3D semantics root satisfies the given matcher.

hasAnyAncestor

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

Verifies whether any ancestor in the path to the 3D semantics root satisfies the given matcher.

Example: For the following spatial semantic tree:

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

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

Parameters

matcher The semantic criteria to evaluate against all ancestors up to the root.

Return

a matcher validating the presence of the specified ancestor.

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: