Function

onChildren

Returns children of this node at the moment of invocation, it only captures nodes that are currently present in the semantic tree.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

onChildren

Common
@CheckResult
fun SemanticsNodeInteraction.onChildren(): SemanticsNodeInteractionCollection

Returns children of this node at the moment of invocation, it only captures nodes that are currently present in the semantic tree.

This is especially relevant for lazy layouts like 'LazyColumn' or 'LazyRow' where only a subset of items are currently composed and exist in the tree. Therefore, this function will only return those currently composed items, not all the items in the backing data set.