---
title: "AutofillType"
description: "Autofill type information.

Autofill services use the [AutofillType] to determine what value to use to autofill fields
associated with this type. If the [AutofillType] is not specified, the autofill services have to
use heuristics to determine the right value to use while auto-filling the corresponding field.

This has been deprecated in favor of a new semantics based API. Use
[ContentType][androidx.compose.ui.semantics.SemanticsProperties.ContentType] instead."
type: "class"
---

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


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

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


> **Deprecated** Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead.

```kotlin
enum class AutofillType
```


Autofill type information.

Autofill services use the `AutofillType` to determine what value to use to autofill fields
associated with this type. If the `AutofillType` is not specified, the autofill services have to
use heuristics to determine the right value to use while auto-filling the corresponding field.

This has been deprecated in favor of a new semantics based API. Use
`ContentType` instead.



