# ContentDataType

Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/autofill/ContentDataType.+class:androidx.compose.ui.autofill.ContentDataType) Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0) Common/AllAndroid/JVM
- Cmn

  ```
  sealed interface ContentDataType
  ```
- android

  ```
  interface ContentDataType
  ```

*** ** * ** ***

Content data type information.

Autofill services use the `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentDataType` to determine what kind of field is associated with the component.

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentDataType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentDataType#Date()` Indicates that the associated component is a date. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentDataType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentDataType#List()` Indicates that the associated component is a list. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentDataType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentDataType#None()` Indicates that the associated component does not have a data type, and therefore is not autofillable. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentDataType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentDataType#Text()` Indicates that the associated component is a text field. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentDataType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentDataType#Toggle()` Indicates that the associated component is a toggle. | Cmn android |

| ### Extension properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentDataType.https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentDataType#(androidx.compose.ui.autofill.ContentDataType).dataType()` | android |

## Public companion properties

### Date

Cmn android Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
val Date: ContentDataType
```

Indicates that the associated component is a date.

### List

Cmn android Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
val List: ContentDataType
```

Indicates that the associated component is a list.

### None

Cmn android Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
val None: ContentDataType
```

Indicates that the associated component does not have a data type, and therefore is not autofillable.

### Text

Cmn android Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
val Text: ContentDataType
```

Indicates that the associated component is a text field.

### Toggle

Cmn android Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
val Toggle: ContentDataType
```

Indicates that the associated component is a toggle.

## Extension properties

### ContentDataType.dataType

android Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/autofill/ContentDataType.android.kt+symbol:dataType)

```
val ContentDataType.dataType: Int
```