---
title: "LocalAutofillTree"
description: "The CompositionLocal that can be used to add [AutofillNode][import
androidx.compose.ui.autofill.AutofillNode]s to the autofill tree. The [AutofillTree] is a
temporary data structure that will be replaced by Autofill Semantics (b/138604305)."
type: "property"
---

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


<a id='references'></a>

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


> **Deprecated** " Use the new semantics-based Autofill APIs androidx.compose.ui.autofill.ContentType and androidx.compose.ui.autofill.ContentDataType instead. "

```kotlin
val LocalAutofillTree =
staticCompositionLocalOf<AutofillTree> { noLocalProvidedFor("LocalAutofillTree") }
```


The CompositionLocal that can be used to add `AutofillNode`s to the autofill tree. The `AutofillTree` is a
temporary data structure that will be replaced by Autofill Semantics (b/138604305).



