# ContentType

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/ContentType.+class:androidx.compose.ui.autofill.ContentType) Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0) Common/AllAndroid/JVM
- Cmn

  ```
  sealed interface ContentType
  ```
- android

  ```
  interface ContentType
  ```

*** ** * ** ***

Content type information.

Autofill services use the `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` to determine what value to use to autofill fields associated with this type. If the `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` is not specified, the autofill services have to use heuristics to determine the right value to use while autofilling the corresponding field.

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#AddressAuxiliaryDetails()` Indicates that the associated component can be autofilled with auxiliary address details. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#AddressCountry()` Indicates that the associated component can be autofilled with a country name/code. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#AddressLocality()` Indicates that the associated component can be autofilled with an address locality (city/town). | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#AddressRegion()` Indicates that the associated component can be autofilled with a region/state. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#AddressStreet()` Indicates that the associated component can be autofilled with a street address. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#BirthDateDay()` Indicates that the associated component can be autofilled with a birth day(of the month). | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#BirthDateFull()` Indicates that the associated component can be autofilled with a full birth date. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#BirthDateMonth()` Indicates that the associated component can be autofilled with a birth month. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#BirthDateYear()` Indicates that the associated component can be autofilled with a birth year. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#CreditCardExpirationDate()` Indicates that the associated component can be autofilled with a credit card expiration date. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#CreditCardExpirationDay()` Indicates that the associated component can be autofilled with a credit card expiration day. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#CreditCardExpirationMonth()` Indicates that the associated component can be autofilled with a credit card expiration month. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#CreditCardExpirationYear()` Indicates that the associated component can be autofilled with a credit card expiration year. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#CreditCardNumber()` Indicates that the associated component can be autofilled with a credit card number. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#CreditCardSecurityCode()` Indicates that the associated component can be autofilled with a credit card security code. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#EmailAddress()` Indicates that the associated component can be autofilled with an email address. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#Gender()` Indicates that the associated component can be autofilled with a gender. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#NewPassword()` Indicates that the associated component can be interpreted as a newly created password for save/update. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#NewUsername()` Indicates that the associated component can be interpreted as a newly created username for save/update. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#Password()` Indicates that the associated component can be autofilled with a password. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#PersonFirstName()` Indicates that the associated component can be autofilled with a person's first/given name. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#PersonFullName()` Indicates that the associated component can be autofilled with a person's full name. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#PersonLastName()` Indicates that the associated component can be autofilled with a person's last/family name. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#PersonMiddleInitial()` Indicates that the associated component can be autofilled with a person's middle initial. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#PersonMiddleName()` Indicates that the associated component can be autofilled with a person's middle name. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#PersonNamePrefix()` Indicates that the associated component can be autofilled with a person's name prefix. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#PersonNameSuffix()` Indicates that the associated component can be autofilled with a person's name suffix. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#PhoneCountryCode()` Indicates that the associated component can be autofilled with a phone number's country code. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#PhoneNumber()` Indicates that the associated component can be autofilled with a phone number with country code. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#PhoneNumberDevice()` Indicates that the associated component can be autofilled with the current device's phone number usually for Sign Up / OTP flows. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#PhoneNumberNational()` Indicates that the associated component can be autofilled with a phone number without country code. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#PostalAddress()` Indicates that the associated component can be autofilled with a postal address. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#PostalCode()` Indicates that the associated component can be autofilled with a postal code. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#PostalCodeExtended()` Indicates that the associated component can be autofilled with an extended ZIP/POSTAL code. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#SmsOtpCode()` Indicates that the associated component can be autofilled with a SMS One Time Password (OTP). | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#Username()` Indicates that the associated component can be autofilled with a username. | Cmn android |

| ### Public functions |
|---|---|---|
| `operator https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType#plus(androidx.compose.ui.autofill.ContentType)(other: https://developer.android.com/reference/kotlin/androidx/compose/ui/autofill/ContentType)` | Cmn android |

## Public companion properties

### AddressAuxiliaryDetails

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

```
val AddressAuxiliaryDetails: ContentType
```

Indicates that the associated component can be autofilled with auxiliary address details.

### AddressCountry

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

```
val AddressCountry: ContentType
```

Indicates that the associated component can be autofilled with a country name/code.

### AddressLocality

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

```
val AddressLocality: ContentType
```

Indicates that the associated component can be autofilled with an address locality (city/town).

### AddressRegion

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

```
val AddressRegion: ContentType
```

Indicates that the associated component can be autofilled with a region/state.

### AddressStreet

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

```
val AddressStreet: ContentType
```

Indicates that the associated component can be autofilled with a street address.

### BirthDateDay

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

```
val BirthDateDay: ContentType
```

Indicates that the associated component can be autofilled with a birth day(of the month).

### BirthDateFull

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

```
val BirthDateFull: ContentType
```

Indicates that the associated component can be autofilled with a full birth date.

### BirthDateMonth

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

```
val BirthDateMonth: ContentType
```

Indicates that the associated component can be autofilled with a birth month.

### BirthDateYear

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

```
val BirthDateYear: ContentType
```

Indicates that the associated component can be autofilled with a birth year.

### CreditCardExpirationDate

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

```
val CreditCardExpirationDate: ContentType
```

Indicates that the associated component can be autofilled with a credit card expiration date.

### CreditCardExpirationDay

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

```
val CreditCardExpirationDay: ContentType
```

Indicates that the associated component can be autofilled with a credit card expiration day.

### CreditCardExpirationMonth

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

```
val CreditCardExpirationMonth: ContentType
```

Indicates that the associated component can be autofilled with a credit card expiration month.

### CreditCardExpirationYear

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

```
val CreditCardExpirationYear: ContentType
```

Indicates that the associated component can be autofilled with a credit card expiration year.

### CreditCardNumber

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

```
val CreditCardNumber: ContentType
```

Indicates that the associated component can be autofilled with a credit card number.

### CreditCardSecurityCode

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

```
val CreditCardSecurityCode: ContentType
```

Indicates that the associated component can be autofilled with a credit card security code.

### EmailAddress

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

```
val EmailAddress: ContentType
```

Indicates that the associated component can be autofilled with an email address.

### Gender

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

```
val Gender: ContentType
```

Indicates that the associated component can be autofilled with a gender.

### NewPassword

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

```
val NewPassword: ContentType
```

Indicates that the associated component can be interpreted as a newly created password for save/update.

### NewUsername

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

```
val NewUsername: ContentType
```

Indicates that the associated component can be interpreted as a newly created username for save/update.

### Password

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

```
val Password: ContentType
```

Indicates that the associated component can be autofilled with a password.

### PersonFirstName

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

```
val PersonFirstName: ContentType
```

Indicates that the associated component can be autofilled with a person's first/given name.

### PersonFullName

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

```
val PersonFullName: ContentType
```

Indicates that the associated component can be autofilled with a person's full name.

### PersonLastName

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

```
val PersonLastName: ContentType
```

Indicates that the associated component can be autofilled with a person's last/family name.

### PersonMiddleInitial

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

```
val PersonMiddleInitial: ContentType
```

Indicates that the associated component can be autofilled with a person's middle initial.

### PersonMiddleName

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

```
val PersonMiddleName: ContentType
```

Indicates that the associated component can be autofilled with a person's middle name.

### PersonNamePrefix

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

```
val PersonNamePrefix: ContentType
```

Indicates that the associated component can be autofilled with a person's name prefix.

### PersonNameSuffix

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

```
val PersonNameSuffix: ContentType
```

Indicates that the associated component can be autofilled with a person's name suffix.

### PhoneCountryCode

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

```
val PhoneCountryCode: ContentType
```

Indicates that the associated component can be autofilled with a phone number's country code.

### PhoneNumber

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

```
val PhoneNumber: ContentType
```

Indicates that the associated component can be autofilled with a phone number with country code.

Example: +1 123-456-7890

### PhoneNumberDevice

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

```
val PhoneNumberDevice: ContentType
```

Indicates that the associated component can be autofilled with the current device's phone number usually for Sign Up / OTP flows.

### PhoneNumberNational

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

```
val PhoneNumberNational: ContentType
```

Indicates that the associated component can be autofilled with a phone number without country code.

### PostalAddress

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

```
val PostalAddress: ContentType
```

Indicates that the associated component can be autofilled with a postal address.

### PostalCode

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

```
val PostalCode: ContentType
```

Indicates that the associated component can be autofilled with a postal code.

### PostalCodeExtended

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

```
val PostalCodeExtended: ContentType
```

Indicates that the associated component can be autofilled with an extended ZIP/POSTAL code.

Example: In forms that split the U.S. ZIP+4 Code with nine digits 99999-9999 into two fields annotate the delivery route code with this hint.

### SmsOtpCode

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

```
val SmsOtpCode: ContentType
```

Indicates that the associated component can be autofilled with a SMS One Time Password (OTP).

### Username

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

```
val Username: ContentType
```

Indicates that the associated component can be autofilled with a username.

## Public functions

### plus

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

```
operator fun plus(other: ContentType): ContentType
```