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 day(of the 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

Enum Values

AddressAuxiliaryDetails

@ExperimentalComposeUiApi
val AutofillType.AddressAuxiliaryDetailsAutofillType

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

AddressCountry

@ExperimentalComposeUiApi
val AutofillType.AddressCountryAutofillType

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

AddressLocality

@ExperimentalComposeUiApi
val AutofillType.AddressLocalityAutofillType

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

AddressRegion

@ExperimentalComposeUiApi
val AutofillType.AddressRegionAutofillType

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

AddressStreet

@ExperimentalComposeUiApi
val AutofillType.AddressStreetAutofillType

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

BirthDateDay

@ExperimentalComposeUiApi
val AutofillType.BirthDateDayAutofillType

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

BirthDateFull

@ExperimentalComposeUiApi
val AutofillType.BirthDateFullAutofillType

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

BirthDateMonth

@ExperimentalComposeUiApi
val AutofillType.BirthDateMonthAutofillType

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

BirthDateYear

@ExperimentalComposeUiApi
val AutofillType.BirthDateYearAutofillType

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

CreditCardExpirationDate

@ExperimentalComposeUiApi
val AutofillType.CreditCardExpirationDateAutofillType

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

CreditCardExpirationDay

@ExperimentalComposeUiApi
val AutofillType.CreditCardExpirationDayAutofillType

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

CreditCardExpirationMonth

@ExperimentalComposeUiApi
val AutofillType.CreditCardExpirationMonthAutofillType

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

CreditCardExpirationYear

@ExperimentalComposeUiApi
val AutofillType.CreditCardExpirationYearAutofillType

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

CreditCardNumber

@ExperimentalComposeUiApi
val AutofillType.CreditCardNumberAutofillType

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

CreditCardSecurityCode

@ExperimentalComposeUiApi
val AutofillType.CreditCardSecurityCodeAutofillType

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

EmailAddress

@ExperimentalComposeUiApi
val AutofillType.EmailAddressAutofillType

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

Gender

@ExperimentalComposeUiApi
val AutofillType.GenderAutofillType

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

NewPassword

@ExperimentalComposeUiApi
val AutofillType.NewPasswordAutofillType

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

NewUsername

@ExperimentalComposeUiApi
val AutofillType.NewUsernameAutofillType

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

Password

@ExperimentalComposeUiApi
val AutofillType.PasswordAutofillType

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

PersonFirstName

@ExperimentalComposeUiApi
val AutofillType.PersonFirstNameAutofillType

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

PersonFullName

@ExperimentalComposeUiApi
val AutofillType.PersonFullNameAutofillType

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

PersonLastName

@ExperimentalComposeUiApi
val AutofillType.PersonLastNameAutofillType

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

PersonMiddleInitial

@ExperimentalComposeUiApi
val AutofillType.PersonMiddleInitialAutofillType

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

PersonMiddleName

@ExperimentalComposeUiApi
val AutofillType.PersonMiddleNameAutofillType

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

PersonNamePrefix

@ExperimentalComposeUiApi
val AutofillType.PersonNamePrefixAutofillType

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

PersonNameSuffix

@ExperimentalComposeUiApi
val AutofillType.PersonNameSuffixAutofillType

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

PhoneCountryCode

@ExperimentalComposeUiApi
val AutofillType.PhoneCountryCodeAutofillType

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

PhoneNumber

@ExperimentalComposeUiApi
val AutofillType.PhoneNumberAutofillType

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

Example: +1 123-456-7890

PhoneNumberDevice

@ExperimentalComposeUiApi
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

@ExperimentalComposeUiApi
val AutofillType.PhoneNumberNationalAutofillType

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

PostalAddress

@ExperimentalComposeUiApi
val AutofillType.PostalAddressAutofillType

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

PostalCode

@ExperimentalComposeUiApi
val AutofillType.PostalCodeAutofillType

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

PostalCodeExtended

@ExperimentalComposeUiApi
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

@ExperimentalComposeUiApi
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

@ExperimentalComposeUiApi
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.