---
title: "getAllSemanticsNodes"
description: "Finds all [SemanticsNode]s in the tree owned by this [SemanticsOwner]. Return the results in a
list."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun SemanticsOwner.getAllSemanticsNodes(
    mergingEnabled: Boolean,
    skipDeactivatedNodes: Boolean = true,
): List<SemanticsNode>
```


Finds all `SemanticsNode`s in the tree owned by this `SemanticsOwner`. Return the results in a
list.

#### Parameters

| | |
| --- | --- |
| mergingEnabled | set to true if you want the data to be merged. |
| skipDeactivatedNodes | set to false if you want to collect the nodes which are deactivated. For example, the children of `androidx.compose.ui.layout.SubcomposeLayout` which are retained to be reused in future are considered deactivated. |




<div class='sourceset sourceset-common'>Common</div>


> **Deprecated** Use a new overload instead

```kotlin
fun SemanticsOwner.getAllSemanticsNodes(mergingEnabled: Boolean) =
    getAllSemanticsNodes(mergingEnabled, true)
```


