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/u