---
title: "LocalAutofill"
description: "The CompositionLocal that can be used to trigger autofill actions. Eg.
[Autofill.requestAutofillForNode]."
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 LocalAutofill = staticCompositionLocalOf<Autofill?> { null }
```


The CompositionLocal that can be used to trigger autofill actions. Eg.
`Autofill.requestAutofillForNode`.



