HintConstants
class HintConstants
kotlin.Any | |
↳ | androidx.autofill.HintConstants |
Contains all the officially supported autofill hint constants.
Can be used with either android.view.View#setAutofillHints(String[])
or android:autofillHint
(in which case the value should be {@value #AUTOFILL_HINT_EMAIL_ADDRESS}
) or
.
Summary
Constants | |
---|---|
static String |
Hint indicating that this view can be autofilled with a birth day(of the month). |
static String |
Hint indicating that this view can be autofilled with a full birth date. |
static String |
Hint indicating that this view can be autofilled with a birth month. |
static String |
Hint indicating that this view can be autofilled with a birth year. |
static String |
Hint indicating that this view can be autofilled with a credit card expiration date. |
static String |
Hint indicating that this view can be autofilled with a credit card expiration day. |
static String |
Hint indicating that this view can be autofilled with a credit card expiration month. |
static String |
Hint indicating that this view can be autofilled with a credit card expiration year. |
static String |
Hint indicating that this view can be autofilled with a credit card number. |
static String |
Hint indicating that this view can be autofilled with a credit card security code. |
static String |
Hint indicating that this view can be autofilled with an email address. |
static String |
Hint indicating that this view can be autofilled with a gender. |
static String |
Hint indicating that this view can be autofilled with a user's real name. |
static String |
Hint indicating that this view can be interpreted as a newly created password for save/update. |
static String |
Hint indicating that this view can be interpreted as a newly created username for save/update. |
static String |
Hint indicating that this view can be autofilled with a password. |
static String |
Hint indicating that this view can be autofilled with a person's full name. |
static String |
Hint indicating that this view can be autofilled with a person's last/family name. |
static String |
Hint indicating that this view can be autofilled with a person's first/given name. |
static String |
Hint indicating that this view can be autofilled with a person's middle name. |
static String |
Hint indicating that this view can be autofilled with a person's middle initial. |
static String |
Hint indicating that this view can be autofilled with a person's name prefix. |
static String |
Hint indicating that this view can be autofilled with a person's name suffix. |
static String |
Hint indicating that this view can be autofilled with a phone number. |
static String |
Hint indicating that this view can be autofilled with a phone number's country code. |
static String |
Hint indicating that this view can be autofilled with a phone number without country code. |
static String |
Hint indicating that this view can be autofilled with the user's full phone number with country code. |
static String |
Hint indicating that this view can be autofilled with the current device's phone number usually for Sign Up / OTP flows. |
static String |
Hint indicating that this view can be autofilled with a postal address. |
static String |
Hint indicating that this view can be autofilled with a country name/code. |
static String |
Hint indicating that this view can be autofilled with auxiliary address details. |
static String |
Hint indicating that this view can be autofilled with an extended ZIP/POSTAL code. |
static String |
Hint indicating that this view can be autofilled with an address locality (city/town). |
static String |
Hint indicating that this view can be autofilled with a region/state. |
static String |
Hint indicating that this view can be autofilled with a street address. |
static String |
Hint indicating that this view can be autofilled with a postal code. |
static String |
Hint indicating that this view can be autofilled with a SMS One Time Password (OTP). |
static String |
Hint indicating that this view can be autofilled with a username. |
Public methods | |
---|---|
static String |
generateSmsOtpHintForCharacterPosition(characterPosition: Int) Generates the corresponding hint that indicates that this view can be autofilled with the |
Constants
AUTOFILL_HINT_BIRTH_DATE_DAY
static val AUTOFILL_HINT_BIRTH_DATE_DAY: String
Hint indicating that this view can be autofilled with a birth day(of the month).
Can be used with either android.view.View#setAutofillHints(String[])
or android:autofillHint
(in which case the value should be {@value #AUTOFILL_HINT_BIRTH_DATE_DAY}
).
See android.view.View#setAutofillHints(String...)
for more info about autofill hints.
Value: "birthDateDay"
AUTOFILL_HINT_BIRTH_DATE_FULL
static val AUTOFILL_HINT_BIRTH_DATE_FULL: String
Hint indicating that this view can be autofilled with a full birth date.