AutofillType
-
Cmn
enum AutofillType : Enum
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 auto-filling the corresponding field.
This has been deprecated in favor of a new semantics based API. Use ContentType instead.
Summary
Enum Values |
|
|---|---|
AddressAuxiliaryDetails |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
AddressCountry |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
AddressLocality |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
AddressRegion |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
AddressStreet |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
BirthDateDay |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
BirthDateFull |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
BirthDateMonth |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
BirthDateYear |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
CreditCardExpirationDate |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
CreditCardExpirationDay |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
CreditCardExpirationMonth |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
CreditCardExpirationYear |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
CreditCardNumber |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
CreditCardSecurityCode |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
EmailAddress |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
Gender |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
NewPassword |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
NewUsername |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
Password |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
PersonFirstName |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
PersonFullName |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
PersonLastName |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
PersonMiddleInitial |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
PersonMiddleName |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
PersonNamePrefix |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
PersonNameSuffix |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
PhoneCountryCode |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
PhoneNumber |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
PhoneNumberDevice |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
PhoneNumberNational |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
PostalAddress |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
PostalCode |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
PostalCodeExtended |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
SmsOtpCode |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
Username |
This enum value is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
Public functions |
||
|---|---|---|
AutofillType |
This function is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
Cmn
|
Array<AutofillType> |
This function is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
Cmn
|
Public properties |
||
|---|---|---|
EnumEntries<AutofillType> |
This property is deprecated. Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead. |
Cmn
|
Enum Values
AddressAuxiliaryDetails
val AutofillType.AddressAuxiliaryDetails: AutofillType
Indicates that the associated component can be auto-filled with auxiliary address details.
AddressCountry
val AutofillType.AddressCountry: AutofillType
Indicates that the associated component can be auto-filled with a country name/code.
AddressLocality
val AutofillType.AddressLocality: AutofillType
Indicates that the associated component can be auto-filled with an address locality (city/town).
AddressRegion
val AutofillType.AddressRegion: AutofillType
Indicates that the associated component can be auto-filled with a region/state.
AddressStreet
val AutofillType.AddressStreet: AutofillType
Indicates that the associated component can be auto-filled with a street address.
BirthDateDay
val AutofillType.BirthDateDay: AutofillType
Indicates that the associated component can be auto-filled with a birth day(of the month).
BirthDateFull
val AutofillType.BirthDateFull: AutofillType
Indicates that the associated component can be auto-filled with a full birth date.
BirthDateMonth
val AutofillType.BirthDateMonth: AutofillType
Indicates that the associated component can be auto-filled with a birth month.
BirthDateYear
val AutofillType.BirthDateYear: AutofillType
Indicates that the associated component can be auto-filled with a birth year.
CreditCardExpirationDate
val AutofillType.CreditCardExpirationDate: AutofillType
Indicates that the associated component can be auto-filled with a credit card expiration date.
CreditCardExpirationDay
val AutofillType.CreditCardExpirationDay: AutofillType
Indicates that the associated component can be auto-filled with a credit card expiration day.
CreditCardExpirationMonth
val AutofillType.CreditCardExpirationMonth: AutofillType
Indicates that the associated component can be auto-filled with a credit card expiration month.
CreditCardExpirationYear
val AutofillType.CreditCardExpirationYear: AutofillType
Indicates that the associated component can be auto-filled with a credit card expiration year.
CreditCardNumber
val AutofillType.CreditCardNumber: AutofillType
Indicates that the associated component can be auto-filled with a credit card number.
CreditCardSecurityCode
val AutofillType.CreditCardSecurityCode: AutofillType
Indicates that the associated component can be auto-filled with a credit card security code.
EmailAddress
val AutofillType.EmailAddress: AutofillType
Indicates that the associated component can be auto-filled with an email address.
Gender
val AutofillType.Gender: AutofillType
Indicates that the associated component can be auto-filled with a gender.
NewPassword
val AutofillType.NewPassword: AutofillType
Indicates that the associated component can be interpreted as a newly created password for save/update.
NewUsername
val AutofillType.NewUsername: AutofillType
Indicates that the associated component can be interpreted as a newly created username for save/update.
Password
val AutofillType.Password: AutofillType
Indicates that the associated component can be auto-filled with a password.
PersonFirstName
val AutofillType.PersonFirstName: AutofillType
Indicates that the associated component can be auto-filled with a person's first/given name.
PersonFullName
val AutofillType.PersonFullName: AutofillType
Indicates that the associated component can be auto-filled with a person's full name.
PersonLastName
val AutofillType.PersonLastName: AutofillType
Indicates that the associated component can be auto-filled with a person's last/family name.
PersonMiddleInitial
val AutofillType.PersonMiddleInitial: AutofillType
Indicates that the associated component can be auto-filled with a person's middle initial.
PersonMiddleName
val AutofillType.PersonMiddleName: AutofillType
Indicates that the associated component can be auto-filled with a person's middle name.
PersonNamePrefix
val AutofillType.PersonNamePrefix: AutofillType
Indicates that the associated component can be auto-filled with a person's name prefix.
PersonNameSuffix
val AutofillType.PersonNameSuffix: AutofillType
Indicates that the associated component can be auto-filled with a person's name suffix.
PhoneCountryCode
val AutofillType.PhoneCountryCode: AutofillType
Indicates that the associated component can be auto-filled with a phone number's country code.
PhoneNumber
val AutofillType.PhoneNumber: AutofillType
Indicates that the associated component can be auto-filled with a phone number with country code.
Example: +1 123-456-7890
PhoneNumberDevice
val AutofillType.PhoneNumberDevice: AutofillType
Indicates that the associated component can be auto-filled with the current device's phone number usually for Sign Up / OTP flows.
PhoneNumberNational
val AutofillType.PhoneNumberNational: AutofillType
Indicates that the associated component can be auto-filled with a phone number without country code.
PostalAddress
val AutofillType.PostalAddress: AutofillType
Indicates that the associated component can be auto-filled with a postal address.
PostalCode
val AutofillType.PostalCode: AutofillType
Indicates that the associated component can be auto-filled with a postal code.
PostalCodeExtended
val AutofillType.PostalCodeExtended: AutofillType
Indicates that the associated component can be auto-filled 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.SmsOtpCode: AutofillType
Indicates that the associated component can be auto-filled 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.Username: AutofillType
Indicates that the associated component can be auto-filled with a username.
Public functions
valueOf
funvalueOf(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
funvalues(): 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 entries: EnumEntries<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.