# HintConstants

Artifact: [androidx.autofill:autofill](https://developer.android.com/jetpack/androidx/releases/autofill) [View Source](https://cs.android.com/search?q=file:androidx/autofill/HintConstants.java+class:androidx.autofill.HintConstants) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

*** ** * ** ***


```
class HintConstants
```

<br />

*** ** * ** ***

Contains all the officially supported autofill hint constants.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_EMAIL_ADDRESS}`) or `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)`.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_2FA_APP_OTP() = "2faAppOTPCode"` Hint indicating that this view can be autofilled with an Time-Based One Time Password (OTP) generated by 2FA apps. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_BIRTH_DATE_DAY() = "birthDateDay"` Hint indicating that this view can be autofilled with a birth day(of the month). |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_BIRTH_DATE_FULL() = "birthDateFull"` Hint indicating that this view can be autofilled with a full birth date. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_BIRTH_DATE_MONTH() = "birthDateMonth"` Hint indicating that this view can be autofilled with a birth month. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_BIRTH_DATE_YEAR() = "birthDateYear"` Hint indicating that this view can be autofilled with a birth year. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE() = "creditCardExpirationDate"` Hint indicating that this view can be autofilled with a credit card expiration date. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY() = "creditCardExpirationDay"` Hint indicating that this view can be autofilled with a credit card expiration day. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH() = "creditCardExpirationMonth"` Hint indicating that this view can be autofilled with a credit card expiration month. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR() = "creditCardExpirationYear"` Hint indicating that this view can be autofilled with a credit card expiration year. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_CREDIT_CARD_NUMBER() = "creditCardNumber"` Hint indicating that this view can be autofilled with a credit card number. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE() = "creditCardSecurityCode"` Hint indicating that this view can be autofilled with a credit card security code. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_EMAIL_ADDRESS() = "emailAddress"` Hint indicating that this view can be autofilled with an email address. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_EMAIL_OTP() = "emailOTPCode"` Hint indicating that this view can be autofilled with an Email One Time Password (OTP). |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_FLIGHT_CONFIRMATION_CODE() = "flightConfirmationCode"` Hint indicating that this view can be autofilled with a flight confirmation code. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_FLIGHT_NUMBER() = "flightNumber"` Hint indicating that this view can be autofilled with a flight number. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_GENDER() = "gender"` Hint indicating that this view can be autofilled with a gender. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_GIFT_CARD_NUMBER() = "giftCardNumber"` Hint indicating that this view can be autofilled with a gift card code. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_GIFT_CARD_PIN() = "giftCardPIN"` Hint indicating that this view can be autofilled with a gift card pin. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_LOYALTY_ACCOUNT_NUMBER() = "loyaltyAccountNumber"` Hint indicating that this view can be autofilled with a loyalty number. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_NAME() = "name"` **This property is deprecated.** replaced by `{@value #AUTOFILL_HINT_PERSON_NAME}` to be more specific <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_NEW_PASSWORD() = "newPassword"` Hint indicating that this view can be interpreted as a newly created password for save/update. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_NEW_USERNAME() = "newUsername"` Hint indicating that this view can be interpreted as a newly created username for save/update. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_NOT_APPLICABLE() = "notApplicable"` Hint indicating that this view is not eligible for autofill. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_PASSWORD() = "password"` Hint indicating that this view can be autofilled with a password. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_PERSON_NAME() = "personName"` Hint indicating that this view can be autofilled with a person's full name. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_PERSON_NAME_FAMILY() = "personFamilyName"` Hint indicating that this view can be autofilled with a person's last/family name. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_PERSON_NAME_GIVEN() = "personGivenName"` Hint indicating that this view can be autofilled with a person's first/given name. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_PERSON_NAME_MIDDLE() = "personMiddleName"` Hint indicating that this view can be autofilled with a person's middle name. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_PERSON_NAME_MIDDLE_INITIAL() = "personMiddleInitial"` Hint indicating that this view can be autofilled with a person's middle initial. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_PERSON_NAME_PREFIX() = "personNamePrefix"` Hint indicating that this view can be autofilled with a person's name prefix. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_PERSON_NAME_SUFFIX() = "personNameSuffix"` Hint indicating that this view can be autofilled with a person's name suffix. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_PHONE() = "phone"` **This property is deprecated.** replaced by `{@value #AUTOFILL_HINT_PHONE_NUMBER}` to be more specific <br /> |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_PHONE_COUNTRY_CODE() = "phoneCountryCode"` Hint indicating that this view can be autofilled with a phone number's country code. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_PHONE_NATIONAL() = "phoneNational"` Hint indicating that this view can be autofilled with a phone number without country code. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_PHONE_NUMBER() = "phoneNumber"` Hint indicating that this view can be autofilled with the user's full phone number with country code. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_PHONE_NUMBER_DEVICE() = "phoneNumberDevice"` Hint indicating that this view can be autofilled with the current device's phone number usually for Sign Up / OTP flows. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_POSTAL_ADDRESS() = "postalAddress"` Hint indicating that this view can be autofilled with a postal address. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_POSTAL_ADDRESS_APT_NUMBER() = "aptNumber"` Hint indicating that this view can be autofilled with an apartment/room/suite number. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_POSTAL_ADDRESS_COUNTRY() = "addressCountry"` Hint indicating that this view can be autofilled with a country name/code. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_POSTAL_ADDRESS_DEPENDENT_LOCALITY() = "dependentLocality"` Hint indicating that this view can be autofilled with a dependent locality i.e. district/locality division/postal division/suburb etc. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_POSTAL_ADDRESS_EXTENDED_ADDRESS() = "extendedAddress"` Hint indicating that this view can be autofilled with auxiliary address details. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_POSTAL_ADDRESS_EXTENDED_POSTAL_CODE() = "extendedPostalCode"` Hint indicating that this view can be autofilled with an extended ZIP/POSTAL code. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_POSTAL_ADDRESS_LOCALITY() = "addressLocality"` Hint indicating that this view can be autofilled with an address locality (city/town). |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_POSTAL_ADDRESS_REGION() = "addressRegion"` Hint indicating that this view can be autofilled with a region/state. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_POSTAL_ADDRESS_STREET_ADDRESS() = "streetAddress"` Hint indicating that this view can be autofilled with a street address. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_POSTAL_CODE() = "postalCode"` Hint indicating that this view can be autofilled with a postal code. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_PROMO_CODE() = "promoCode"` Hint indicating that this view can be autofilled with a promo/coupon code. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_SMS_OTP() = "smsOTPCode"` Hint indicating that this view can be autofilled with a SMS One Time Password (OTP). |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_UPI_VPA() = "upiVirtualPaymentAddress"` Hint indicating that this view can be autofilled with an Unified Payments Interface (UPI) Virtual Payment Address. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_USERNAME() = "username"` Hint indicating that this view can be autofilled with a username. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_WIFI_PASSWORD() = "wifiPassword"` Hint indicating that this view can be autofilled with a wifi password. |

| ### Public functions |
|---|---|
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#generateSmsOtpHintForCharacterPosition(int)(characterPosition: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Generates the corresponding hint that indicates that this view can be autofilled with the `characterPosition`'th character/digit of a SMS One Time Password (OTP). |

## Constants

### AUTOFILL_HINT_2FA_APP_OTP

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.2.0)

```
const val AUTOFILL_HINT_2FA_APP_OTP = "2faAppOTPCode": String!
```

Hint indicating that this view can be autofilled with an Time-Based One Time Password (OTP) generated by 2FA apps.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_2FA_APP_OTP}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_BIRTH_DATE_DAY

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_BIRTH_DATE_DAY = "birthDateDay": String!
```

Hint indicating that this view can be autofilled with a birth day(of the month).

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_BIRTH_DATE_DAY}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_BIRTH_DATE_FULL

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_BIRTH_DATE_FULL = "birthDateFull": String!
```

Hint indicating that this view can be autofilled with a full birth date.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_BIRTH_DATE_FULL}`).

The recommended approach is to use a date autofill value - see `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE()` for more details.

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_BIRTH_DATE_MONTH

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_BIRTH_DATE_MONTH = "birthDateMonth": String!
```

Hint indicating that this view can be autofilled with a birth month.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_BIRTH_DATE_MONTH}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_BIRTH_DATE_YEAR

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_BIRTH_DATE_YEAR = "birthDateYear": String!
```

Hint indicating that this view can be autofilled with a birth year.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_BIRTH_DATE_YEAR}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE = "creditCardExpirationDate": String!
```

Hint indicating that this view can be autofilled with a credit card expiration date.

It should be used when the credit card expiration date is represented by just one view; if it is represented by more than one (for example, one view for the month and another view for the year), then each of these views should use the hint specific for the unit (`https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY()`, `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH()`, or `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR()`).

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE}`).

When annotating a view with this hint, it's recommended to use a date autofill value to avoid ambiguity when the autofill service provides a value for it. To understand why a value can be ambiguous, consider "April of 2020", which could be represented as either of the following options:

- `"04/2020"`
- `"4/2020"`
- `"2020/04"`
- `"2020/4"`
- `"April/2020"`
- `"Apr/2020"`

You define a date autofill value for the view by overriding the following methods:

1. `https://developer.android.com/reference/android/view/View.html#getAutofillType()` to return `https://developer.android.com/reference/android/view/View.html#AUTOFILL_TYPE_DATE`.
2. `https://developer.android.com/reference/android/view/View.html#getAutofillValue()` to return a `https://developer.android.com/reference/android/view/autofill/AutofillValue.html#forDate(long)`.
3. `https://developer.android.com/reference/android/view/View.html#autofill(android.view.autofill.AutofillValue)` to expect a data autofillvalue.

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY = "creditCardExpirationDay": String!
```

Hint indicating that this view can be autofilled with a credit card expiration day.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH = "creditCardExpirationMonth": String!
```

Hint indicating that this view can be autofilled with a credit card expiration month.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH}`).

When annotating a view with this hint, it's recommended to use a text autofill value whose value is the numerical representation of the month, starting on `1` to avoid ambiguity when the autofill service provides a value for it. To understand why a value can be ambiguous, consider "January", which could be represented as either of

- `"1"`: recommended way.
- `"0"`: if following the `https://developer.android.com/reference/java/util/Calendar.html#MONTH` convention.
- `"January"`: full name, in English.
- `"jan"`: abbreviated name, in English.
- `"Janeiro"`: full name, in another language.

Another recommended approach is to use a date autofill value - see `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE()` for more details.

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR = "creditCardExpirationYear": String!
```

Hint indicating that this view can be autofilled with a credit card expiration year.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_CREDIT_CARD_NUMBER

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_CREDIT_CARD_NUMBER = "creditCardNumber": String!
```

Hint indicating that this view can be autofilled with a credit card number.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_CREDIT_CARD_NUMBER}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE = "creditCardSecurityCode": String!
```

Hint indicating that this view can be autofilled with a credit card security code.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_EMAIL_ADDRESS

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_EMAIL_ADDRESS = "emailAddress": String!
```

Hint indicating that this view can be autofilled with an email address.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_EMAIL_ADDRESS}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_EMAIL_OTP

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.2.0)

```
const val AUTOFILL_HINT_EMAIL_OTP = "emailOTPCode": String!
```

Hint indicating that this view can be autofilled with an Email One Time Password (OTP).

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_EMAIL_OTP}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_FLIGHT_CONFIRMATION_CODE

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.3.0)

```
const val AUTOFILL_HINT_FLIGHT_CONFIRMATION_CODE = "flightConfirmationCode": String!
```

Hint indicating that this view can be autofilled with a flight confirmation code.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_FLIGHT_CONFIRMATION_CODE}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_FLIGHT_NUMBER

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.3.0)

```
const val AUTOFILL_HINT_FLIGHT_NUMBER = "flightNumber": String!
```

Hint indicating that this view can be autofilled with a flight number. Examples: UA 355 (United Airlines), WN 355 (Southwest), AA 9158 (American Airlines)

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_FLIGHT_NUMBER}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_GENDER

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_GENDER = "gender": String!
```

Hint indicating that this view can be autofilled with a gender.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_GENDER}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_GIFT_CARD_NUMBER

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.3.0)

```
const val AUTOFILL_HINT_GIFT_CARD_NUMBER = "giftCardNumber": String!
```

Hint indicating that this view can be autofilled with a gift card code.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_GIFT_CARD_NUMBER}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_GIFT_CARD_PIN

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.3.0)

```
const val AUTOFILL_HINT_GIFT_CARD_PIN = "giftCardPIN": String!
```

Hint indicating that this view can be autofilled with a gift card pin.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_GIFT_CARD_PIN}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_LOYALTY_ACCOUNT_NUMBER

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.3.0)

```
const val AUTOFILL_HINT_LOYALTY_ACCOUNT_NUMBER = "loyaltyAccountNumber": String!
```

Hint indicating that this view can be autofilled with a loyalty number.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_LOYALTY_ACCOUNT_NUMBER}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_NAME

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0) Deprecated in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_NAME = "name": String!
```

> [!CAUTION]
> **This property is deprecated.**   
>
> replaced by `{@value #AUTOFILL_HINT_PERSON_NAME}` to be more specific

Hint indicating that this view can be autofilled with a user's real name.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_NAME}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_NEW_PASSWORD

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_NEW_PASSWORD = "newPassword": String!
```

Hint indicating that this view can be interpreted as a newly created password for save/update.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_NEW_PASSWORD}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_NEW_USERNAME

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_NEW_USERNAME = "newUsername": String!
```

Hint indicating that this view can be interpreted as a newly created username for save/update.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_NEW_USERNAME}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_NOT_APPLICABLE

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.2.0)

```
const val AUTOFILL_HINT_NOT_APPLICABLE = "notApplicable": String!
```

Hint indicating that this view is not eligible for autofill.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_NOT_APPLICABLE}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_PASSWORD

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_PASSWORD = "password": String!
```

Hint indicating that this view can be autofilled with a password.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_PASSWORD}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_PERSON_NAME

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_PERSON_NAME = "personName": String!
```

Hint indicating that this view can be autofilled with a person's full name.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_PERSON_NAME}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_PERSON_NAME_FAMILY

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_PERSON_NAME_FAMILY = "personFamilyName": String!
```

Hint indicating that this view can be autofilled with a person's last/family name.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_PERSON_NAME_FAMILY}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_PERSON_NAME_GIVEN

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_PERSON_NAME_GIVEN = "personGivenName": String!
```

Hint indicating that this view can be autofilled with a person's first/given name.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_PERSON_NAME_GIVEN}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_PERSON_NAME_MIDDLE

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_PERSON_NAME_MIDDLE = "personMiddleName": String!
```

Hint indicating that this view can be autofilled with a person's middle name.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_PERSON_NAME_MIDDLE}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_PERSON_NAME_MIDDLE_INITIAL

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_PERSON_NAME_MIDDLE_INITIAL = "personMiddleInitial": String!
```

Hint indicating that this view can be autofilled with a person's middle initial.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_PERSON_NAME_MIDDLE_INITIAL}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_PERSON_NAME_PREFIX

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_PERSON_NAME_PREFIX = "personNamePrefix": String!
```

Hint indicating that this view can be autofilled with a person's name prefix.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_PERSON_NAME_PREFIX}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_PERSON_NAME_SUFFIX

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_PERSON_NAME_SUFFIX = "personNameSuffix": String!
```

Hint indicating that this view can be autofilled with a person's name suffix.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_PERSON_NAME_SUFFIX}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_PHONE

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0) Deprecated in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_PHONE = "phone": String!
```

> [!CAUTION]
> **This property is deprecated.**   
>
> replaced by `{@value #AUTOFILL_HINT_PHONE_NUMBER}` to be more specific

Hint indicating that this view can be autofilled with a phone number.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_PHONE}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_PHONE_COUNTRY_CODE

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_PHONE_COUNTRY_CODE = "phoneCountryCode": String!
```

Hint indicating that this view can be autofilled with a phone number's country code.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_PHONE_COUNTRY_CODE}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_PHONE_NATIONAL

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_PHONE_NATIONAL = "phoneNational": String!
```

Hint indicating that this view can be autofilled with a phone number without country code.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_PHONE_NATIONAL}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_PHONE_NUMBER

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_PHONE_NUMBER = "phoneNumber": String!
```

Hint indicating that this view can be autofilled with the user's full phone number with country code.

Example: `+1 123-456-7890`

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_PHONE_NUMBER}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_PHONE_NUMBER_DEVICE

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_PHONE_NUMBER_DEVICE = "phoneNumberDevice": String!
```

Hint indicating that this view can be autofilled with the current device's phone number usually for Sign Up / OTP flows.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_PHONE_NUMBER_DEVICE}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_POSTAL_ADDRESS

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_POSTAL_ADDRESS = "postalAddress": String!
```

Hint indicating that this view can be autofilled with a postal address.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_POSTAL_ADDRESS}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_POSTAL_ADDRESS_APT_NUMBER

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.2.0)

```
const val AUTOFILL_HINT_POSTAL_ADDRESS_APT_NUMBER = "aptNumber": String!
```

Hint indicating that this view can be autofilled with an apartment/room/suite number.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_POSTAL_ADDRESS_APT_NUMBER}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_POSTAL_ADDRESS_COUNTRY

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_POSTAL_ADDRESS_COUNTRY = "addressCountry": String!
```

Hint indicating that this view can be autofilled with a country name/code.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_POSTAL_ADDRESS_COUNTRY}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_POSTAL_ADDRESS_DEPENDENT_LOCALITY

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.2.0)

```
const val AUTOFILL_HINT_POSTAL_ADDRESS_DEPENDENT_LOCALITY = "dependentLocality": String!
```

Hint indicating that this view can be autofilled with a dependent locality i.e. district/locality division/postal division/suburb etc.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_POSTAL_ADDRESS_DEPENDENT_LOCALITY}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_POSTAL_ADDRESS_EXTENDED_ADDRESS

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_POSTAL_ADDRESS_EXTENDED_ADDRESS = "extendedAddress": String!
```

Hint indicating that this view can be autofilled with auxiliary address details.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_POSTAL_ADDRESS_EXTENDED_ADDRESS}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_POSTAL_ADDRESS_EXTENDED_POSTAL_CODE

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_POSTAL_ADDRESS_EXTENDED_POSTAL_CODE = "extendedPostalCode": String!
```

Hint indicating that this view 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.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_POSTAL_ADDRESS_EXTENDED_POSTAL_CODE}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_POSTAL_ADDRESS_LOCALITY

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_POSTAL_ADDRESS_LOCALITY = "addressLocality": String!
```

Hint indicating that this view can be autofilled with an address locality (city/town).

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_POSTAL_ADDRESS_LOCALITY}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_POSTAL_ADDRESS_REGION

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_POSTAL_ADDRESS_REGION = "addressRegion": String!
```

Hint indicating that this view can be autofilled with a region/state.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_POSTAL_ADDRESS_REGION}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_POSTAL_ADDRESS_STREET_ADDRESS

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_POSTAL_ADDRESS_STREET_ADDRESS = "streetAddress": String!
```

Hint indicating that this view can be autofilled with a street address.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_POSTAL_ADDRESS_STREET_ADDRESS}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_POSTAL_CODE

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_POSTAL_CODE = "postalCode": String!
```

Hint indicating that this view can be autofilled with a postal code.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_POSTAL_CODE}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_PROMO_CODE

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.2.0)

```
const val AUTOFILL_HINT_PROMO_CODE = "promoCode": String!
```

Hint indicating that this view can be autofilled with a promo/coupon code.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_PROMO_CODE}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_SMS_OTP

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_SMS_OTP = "smsOTPCode": String!
```

Hint indicating that this view can be autofilled with a SMS One Time Password (OTP).

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_SMS_OTP}`).

When annotating OTP code fields which map to a single digit of the code consider using `` `https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#generateSmsOtpHintForCharacterPosition(int)` ``

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_UPI_VPA

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.2.0)

```
const val AUTOFILL_HINT_UPI_VPA = "upiVirtualPaymentAddress": String!
```

Hint indicating that this view can be autofilled with an Unified Payments Interface (UPI) Virtual Payment Address.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_UPI_VPA}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_USERNAME

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
const val AUTOFILL_HINT_USERNAME = "username": String!
```

Hint indicating that this view can be autofilled with a username.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_USERNAME}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

### AUTOFILL_HINT_WIFI_PASSWORD

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.2.0)

```
const val AUTOFILL_HINT_WIFI_PASSWORD = "wifiPassword": String!
```

Hint indicating that this view can be autofilled with a wifi password.

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `{@value #AUTOFILL_HINT_WIFI_PASSWORD}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

## Public functions

### generateSmsOtpHintForCharacterPosition

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/autofill#1.0.0)

```
java-static fun generateSmsOtpHintForCharacterPosition(characterPosition: Int): String
```

Generates the corresponding hint that indicates that this view can be autofilled with the `characterPosition`'th character/digit of a SMS One Time Password (OTP).

Can be used with either `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` or [`android:autofillHint`](https://developer.android.com/reference/kotlin/androidx/autofill/HintConstants#attr_android:autofillHint) (in which case the value should be `smsOTPCode{characterPosition}`).

See `https://developer.android.com/reference/android/view/View.html#setAutofillHints(java.lang.String...)` for more info about autofill hints.

| Parameters |
|---|---|
| `characterPosition: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | value between 1 and 8 representing the character position of the OTP code that the service should autofill in the associated view. |