Function

onSiblings

Returns all siblings of this node.

onSiblings

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

Returns all siblings of this node.

Example: For the following tree

|-A
|-B1
|-B2 <- this node
|-B3

Returns B1, B3

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: