Function

onDescendants

Returns all the descendants of this node in Depth-First Search order.

onDescendants

Source set: Common
public fun SemanticsNodeInteraction.onDescendants(): SemanticsNodeInteractionCollection

Returns all the descendants of this node in Depth-First Search order.

Example: For the following tree

|-A <- this node
|-B
|-C
|-D
|-E

Returns B, C, D, E

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: