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

AddressAuxiliaryDetails

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

AddressCountry

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

AddressLocality

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

AddressRegion

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

AddressStreet

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

BirthDateDay

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

BirthDateFull

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

BirthDateMonth

Indicates that the associated component can be autofilled with a birth month.

BirthDateYear

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

CreditCardExpirationDate

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

CreditCardExpirationDay

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

CreditCardExpirationMonth

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

CreditCardExpirationYear

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

CreditCardNumber

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

CreditCardSecurityCode

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

EmailAddress

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

Gender

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

NewPassword

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

NewUsername

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

Password

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

PersonFirstName

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

PersonFullName

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

PersonLastName

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

PersonMiddleInitial

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

PersonMiddleName

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

PersonNamePrefix

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

PersonNameSuffix

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

PhoneCountryCode

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

PhoneNumber

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

PhoneNumberDevice

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

PhoneNumberNational

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

PostalAddress

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

PostalCode

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

PostalCodeExtended

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

SmsOtpCode

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

Username

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

Public functions

AutofillType
valueOf(value: String)

Returns the enum constant of this type with the specified name.

Cmn
Array<AutofillType>

Returns an array containing the constants of this enum type, in the order they're declared.

Cmn

Public properties

EnumEntries<AutofillType>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Cmn

Enum Values

AddressAuxiliaryDetails

val AutofillType.AddressAuxiliaryDetailsAutofillType

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

AddressCountry

val AutofillType.AddressCountryAutofillType

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

AddressLocality

val AutofillType.AddressLocalityAutofillType

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

AddressRegion

val AutofillType.AddressRegionAutofillType

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

AddressStreet

val AutofillType.AddressStreetAutofillType

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

BirthDateDay

val AutofillType.BirthDateDayAutofillType

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

BirthDateFull

val AutofillType.BirthDateFullAutofillType

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

BirthDateMonth

val AutofillType.BirthDateMonthAutofillType

Indicates that the associated component can be autofilled with a birth month.

BirthDateYear

val AutofillType.BirthDateYearAutofillType

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

CreditCardExpirationDate

val AutofillType.CreditCardExpirationDateAutofillType

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

CreditCardExpirationDay

val AutofillType.CreditCardExpirationDayAutofillType

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

CreditCardExpirationMonth

val AutofillType.CreditCardExpirationMonthAutofillType

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

CreditCardExpirationYear

val AutofillType.CreditCardExpirationYearAutofillType

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

CreditCardNumber

val AutofillType.CreditCardNumberAutofillType

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

CreditCardSecurityCode

val AutofillType.CreditCardSecurityCodeAutofillType

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

EmailAddress

val AutofillType.EmailAddressAutofillType

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

Gender

val AutofillType.GenderAutofillType

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

NewPassword

val AutofillType.NewPasswordAutofillType

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

NewUsername

val AutofillType.NewUsernameAutofillType

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

Password

val AutofillType.PasswordAutofillType

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

PersonFirstName

val AutofillType.PersonFirstNameAutofillType

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

PersonFullName

val AutofillType.PersonFullNameAutofillType

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

PersonLastName

val AutofillType.PersonLastNameAutofillType

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

PersonMiddleInitial

val AutofillType.PersonMiddleInitialAutofillType

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

PersonMiddleName

val AutofillType.PersonMiddleNameAutofillType

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

PersonNamePrefix

val AutofillType.PersonNamePrefixAutofillType

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

PersonNameSuffix

val AutofillType.PersonNameSuffixAutofillType

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

PhoneCountryCode

val AutofillType.PhoneCountryCodeAutofillType

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

PhoneNumber

val AutofillType.PhoneNumberAutofillType

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

Example: +1 123-456-7890

PhoneNumberDevice

val AutofillType.PhoneNumberDeviceAutofillType

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

PhoneNumberNational

val AutofillType.PhoneNumberNationalAutofillType

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

PostalAddress

val AutofillType.PostalAddressAutofillType

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

PostalCode

val AutofillType.PostalCodeAutofillType

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

PostalCodeExtended

val AutofillType.PostalCodeExtendedAutofillType

Indicates that the associated component 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.

SmsOtpCode

val AutofillType.SmsOtpCodeAutofillType

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

val AutofillType.UsernameAutofillType

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

Public functions

valueOf

fun valueOf(value: String): AutofillType

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

fun values(): Array<AutofillType>

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.

Public properties

entries

val entriesEnumEntries<AutofillType>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

This method may be used to iterate over the enum entries.