---
title: "AutofillNode"
description: "Every autofill-able composable will have an [AutofillNode]. (An autofill node will be created for
every semantics node that adds autofill properties). This node is used to request/cancel
autofill, and it holds the [onFill] lambda which is called by the autofill framework."
type: "class"
---

<div class='type'>Class</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
class AutofillNode(
    val autofillTypes: List<@Suppress("Deprecation") AutofillType> = listOf(),
    var boundingBox: Rect? = null,
    val onFill: ((String) -> Unit)?,
)
```


Every autofill-able composable will have an `AutofillNode`. (An autofill node will be created for
every semantics node that adds autofill properties). This node is used to request/cancel
autofill, and it holds the `onFill` lambda which is called by the autofill framework.


## Properties

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


```kotlin
val id: Int
```



