Function

onAncestors

Returns all the ancestors of this node.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

onAncestors

Common
@CheckResult
fun SemanticsNodeInteraction.onAncestors(): SemanticsNodeInteractionCollection

Returns all the ancestors of this node.

For the following tree

|-A |-B   |-C <- this node
Returns B, A