HintConstants

public final class HintConstants
extends Object

java.lang.Object
   ↳ androidx.autofill.HintConstants


Contains all the officially supported autofill hint constants.

Can be used with either View.setAutofillHints(String[]) or android:autofillHint (in which case the value should be .AUTOFILL_HINT_EMAIL_ADDRESS) or View.setAutofillHints(String[]).

Summary

Constants

String AUTOFILL_HINT_2FA_APP_OTP

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

String AUTOFILL_HINT_BIRTH_DATE_DAY

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

String AUTOFILL_HINT_BIRTH_DATE_FULL

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

String AUTOFILL_HINT_BIRTH_DATE_MONTH

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

String AUTOFILL_HINT_BIRTH_DATE_YEAR

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

String AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE

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

String AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY

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

String AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH

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

String AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR

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

String AUTOFILL_HINT_CREDIT_CARD_NUMBER

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

String AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE

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

String AUTOFILL_HINT_EMAIL_ADDRESS

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

String AUTOFILL_HINT_EMAIL_OTP

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

String AUTOFILL_HINT_GENDER

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

String AUTOFILL_HINT_NAME

This constant is deprecated. replaced by .AUTOFILL_HINT_PERSON_NAME to be more specific

String AUTOFILL_HINT_NEW_PASSWORD

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

String AUTOFILL_HINT_NEW_USERNAME

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

String AUTOFILL_HINT_NOT_APPLICABLE

Hint indicating that this view is not eligible for autofill.

String AUTOFILL_HINT_PASSWORD

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

String AUTOFILL_HINT_PERSON_NAME

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

String AUTOFILL_HINT_PERSON_NAME_FAMILY

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

String AUTOFILL_HINT_PERSON_NAME_GIVEN

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

String AUTOFILL_HINT_PERSON_NAME_MIDDLE

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

String AUTOFILL_HINT_PERSON_NAME_MIDDLE_INITIAL

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

String AUTOFILL_HINT_PERSON_NAME_PREFIX

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

String AUTOFILL_HINT_PERSON_NAME_SUFFIX

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

String AUTOFILL_HINT_PHONE

This constant is deprecated. replaced by .AUTOFILL_HINT_PHONE_NUMBER to be more specific

String AUTOFILL_HINT_PHONE_COUNTRY_CODE

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

String AUTOFILL_HINT_PHONE_NATIONAL

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

String AUTOFILL_HINT_PHONE_NUMBER

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

String AUTOFILL_HINT_PHONE_NUMBER_DEVICE

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

String AUTOFILL_HINT_POSTAL_ADDRESS

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

String AUTOFILL_HINT_POSTAL_ADDRESS_APT_NUMBER

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

String AUTOFILL_HINT_POSTAL_ADDRESS_COUNTRY

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

String AUTOFILL_HINT_POSTAL_ADDRESS_DEPENDENT_LOCALITY

Hint indicating that this view can be autofilled with a dependent locality i.e.

String AUTOFILL_HINT_POSTAL_ADDRESS_EXTENDED_ADDRESS

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

String AUTOFILL_HINT_POSTAL_ADDRESS_EXTENDED_POSTAL_CODE

Hint indicating that this view can be autofilled with an extended ZIP/POSTAL code.

String AUTOFILL_HINT_POSTAL_ADDRESS_LOCALITY

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

String AUTOFILL_HINT_POSTAL_ADDRESS_REGION

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

String AUTOFILL_HINT_POSTAL_ADDRESS_STREET_ADDRESS

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