Google is committed to advancing racial equity for Black communities. See how.

AutofillType

enum class AutofillType
kotlin.Any
   ↳ kotlin.Enum<androidx.ui.autofill.AutofillType>
   ↳ androidx.ui.autofill.AutofillType

Autofill type information.

Autofill services use the AutofillType to determine what value to use to autofill fields associated with this type. If the AutofillType is not specified, the autofill services have to use heuristics to determine the right value to use while autofilling the corresponding field.

Summary

Enum values

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Indicates that the associated component can be aufofilled with a name.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Enum values

AddressAuxiliaryDetails

enum val AddressAuxiliaryDetails : AutofillType

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

AddressCountry

enum val AddressCountry : AutofillType

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

AddressLocality

enum val AddressLocality : AutofillType

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

AddressRegion

enum val AddressRegion : AutofillType

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

AddressStreet

enum val AddressStreet : AutofillType

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

BirthDateDay

enum val BirthDateDay : AutofillType

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

BirthDateFull

enum val BirthDateFull : AutofillType

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

BirthDateMonth

enum val BirthDateMonth : AutofillType

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

BirthDateYear

enum val BirthDateYear : AutofillType

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

CreditCardExpirationDate

enum val CreditCardExpirationDate : AutofillType

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

CreditCardExpirationDay

enum val CreditCardExpirationDay : AutofillType

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

CreditCardExpirationMonth

enum val CreditCardExpirationMonth : AutofillType

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

CreditCardExpirationYear

enum val CreditCardExpirationYear : AutofillType

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

CreditCardNumber

enum val CreditCardNumber : AutofillType

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

CreditCardSecurityCode

enum val CreditCardSecurityCode : AutofillType

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

EmailAddress

enum val EmailAddress : AutofillType

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

Gender

enum val Gender : AutofillType

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

Name

enum val Name : AutofillType

Deprecated.

Indicates that the associated component can be aufofilled with a name.

TODO(b/153400666): Remove this deprecated value.

NewPassword

enum val NewPassword : AutofillType

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

NewUsername

enum val NewUsername : AutofillType

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

Password

enum val Password : AutofillType

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

PersonFirstName

enum val PersonFirstName : AutofillType

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

PersonFullName

enum val PersonFullName : AutofillType

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

PersonLastName

enum val PersonLastName : AutofillType

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

PersonMiddleInitial

enum val PersonMiddleInitial : AutofillType

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

PersonMiddleName

enum val PersonMiddleName : AutofillType

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

PersonNamePrefix

enum val PersonNamePrefix : AutofillType

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

PersonNameSuffix

enum val PersonNameSuffix : AutofillType

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

PhoneCountryCode

enum val PhoneCountryCode : AutofillType

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

PhoneNumber

enum val PhoneNumber : AutofillType

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

Example: +1 123-456-7890

PhoneNumberDevice

enum val PhoneNumberDevice : AutofillType

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

PhoneNumberNational

enum val PhoneNumberNational : AutofillType

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

PostalAddress

enum val PostalAddress : AutofillType

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

PostalCode

enum val PostalCode : AutofillType

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

PostalCodeExtended

enum val PostalCodeExtended : AutofillType

Indicates that the associated component can be aufofilled 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

enum val SmsOtpCode : AutofillType

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

TODO(b/153386346): Support use-case where you specify the start and end index of the OTP.

Username

enum val Username : AutofillType

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