🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

AutofillType

Autofill type information.

Source set: Common
@Deprecated("Use the new semantics-based API and androidx.compose.ui.autofill.ContentType instead.")
public enum class AutofillType {
    /** Indicates that the associated component can be auto-filled with an email address. */
    EmailAddress,

    /** Indicates that the associated component can be auto-filled with a username. */
    Username,

    /** Indicates that the associated component can be auto-filled with a password. */
    Password,

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

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

    /** Indicates that the associated component can be auto-filled with a postal address. */
    PostalAddress,

    /** Indicates that the associated component can be auto-filled with a postal code. */
    PostalCode,

    /** Indicates that the associated component can be auto-filled with a credit card number. */
    CreditCardNumber,

    /**
     * Indicates that the associated component can be auto-filled with a credit card security code.
     */
    CreditCardSecurityCode,

    /**
     * Indicates that the associated component can be auto-filled with a credit card expiration
     * date.
     */
    CreditCardExpirationDate,

    /**
     * Indicates that the associated component can be auto-filled with a credit card expiration
     * month.
     */
    CreditCardExpirationMonth,

    /**
     * Indicates that the associated component can be auto-filled with a credit card expiration
     * year.
     */
    CreditCardExpirationYear,

    /**
     * Indicates that the associated component can be auto-filled with a credit card expiration day.
     */
    CreditCardExpirationDay,

    /** Indicates that the associated component can be auto-filled with a country name/code. */
    AddressCountry,

    /** Indicates that the associated component can be auto-filled with a region/state. */
    AddressRegion,

    /**
     * Indicates that the associated component can be auto-filled with an address locality
     * (city/town).
     */
    AddressLocality,

    /** Indicates that the associated component can be auto-filled with a street address. */
    AddressStreet,

    /**
     * Indicates that the associated component can be auto-filled with auxiliary address details.
     */
    AddressAuxiliaryDetails,

    /**
     * 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.
     */
    PostalCodeExtended,

    /** Indicates that the associated component can be auto-filled with a person's full name. */
    PersonFullName,

    /**
     * Indicates that the associated component can be auto-filled with a person's first/given name.
     */
    PersonFirstName,

    /**
     * Indicates that the associated component can be auto-filled with a person's last/family name.
     */
    PersonLastName,

    /** Indicates that the associated component can be auto-filled with a person's middle name. */
    PersonMiddleName,

    /**
     * Indicates that the associated component can be auto-filled with a person's middle initial.
     */
    PersonMiddleInitial,

    /** Indicates that the associated component can be auto-filled with a person's name prefix. */
    PersonNamePrefix,

    /** Indicates that the associated component can be auto-filled with a person's name suffix. */
    PersonNameSuffix,

    /**
     * Indicates that the associated component can be auto-filled with a phone number with country
     * code.
     *
     * Example: +1 123-456-7890
     */
    PhoneNumber,

    /**
     * Indicates that the associated component can be auto-filled with the current device's phone
     * number usually for Sign Up / OTP flows.
     */
    PhoneNumberDevice,

    /**
     * Indicates that the associated component can be auto-filled with a phone number's country
     * code.
     */
    PhoneCountryCode,

    /**
     * Indicates that the associated component can be auto-filled with a phone number without
     * country code.
     */
    PhoneNumberNational,

    /** Indicates that the associated component can be auto-filled with a gender. */
    Gender,

    /** Indicates that the associated component can be auto-filled with a full birth date. */
    BirthDateFull,

    /**
     * Indicates that the associated component can be auto-filled with a birth day(of the month).
     */
    BirthDateDay,

    /** Indicates that the associated component can be auto-filled with a birth month. */
    BirthDateMonth,

    /** Indicates that the associated component can be auto-filled with a birth year. */
    BirthDateYear,

    /**
     * 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.
     */
    SmsOtpCode,
}

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.

Members

EmailAddress

Source set: Common
EmailAddress

Indicates that the associated component can be auto-filled with an email address.

Username

Source set: Common
Username

Indicates that the associated component can be auto-filled with a username.

Password

Source set: Common
Password

Indicates that the associated component can be auto-filled with a password.

NewUsername

Source set: Common
NewUsername

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

NewPassword

Source set: Common
NewPassword

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

PostalAddress

Source set: Common
PostalAddress

Indicates that the associated component can be auto-filled with a postal address.

PostalCode

Source set: Common
PostalCode

Indicates that the associated component can be auto-filled with a postal code.

CreditCardNumber

Source set: Common
CreditCardNumber

Indicates that the associated component can be auto-filled with a credit card number.

CreditCardSecurityCode

Source set: Common
CreditCardSecurityCode

Indicates that the associated component can be auto-filled with a credit card security code.

CreditCardExpirationDate

Source set: Common
CreditCardExpirationDate

Indicates that the associated component can be auto-filled with a credit card expiration date.

CreditCardExpirationMonth

Source set: Common
CreditCardExpirationMonth

Indicates that the associated component can be auto-filled with a credit card expiration month.

CreditCardExpirationYear

Source set: Common
CreditCardExpirationYear

Indicates that the associated component can be auto-filled with a credit card expiration year.

CreditCardExpirationDay

Source set: Common
CreditCardExpirationDay

Indicates that the associated component can be auto-filled with a credit card expiration day.

AddressCountry

Source set: Common
AddressCountry

Indicates that the associated component can be auto-filled with a country name/code.

AddressRegion

Source set: Common
AddressRegion

Indicates that the associated component can be auto-filled with a region/state.

AddressLocality

Source set: Common
AddressLocality

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

AddressStreet

Source set: Common
AddressStreet

Indicates that the associated component can be auto-filled with a street address.

AddressAuxiliaryDetails

Source set: Common
AddressAuxiliaryDetails

Indicates that the associated component can be auto-filled with auxiliary address details.

PostalCodeExtended

Source set: Common
PostalCodeExtended

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.

PersonFullName

Source set: Common
PersonFullName

Indicates that the associated component can be auto-filled with a person's full name.

PersonFirstName

Source set: Common
PersonFirstName

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

PersonLastName

Source set: Common
PersonLastName

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

PersonMiddleName

Source set: Common
PersonMiddleName

Indicates that the associated component can be auto-filled with a person's middle name.

PersonMiddleInitial

Source set: Common
PersonMiddleInitial

Indicates that the associated component can be auto-filled with a person's middle initial.

PersonNamePrefix

Source set: Common
PersonNamePrefix

Indicates that the associated component can be auto-filled with a person's name prefix.

PersonNameSuffix

Source set: Common
PersonNameSuffix

Indicates that the associated component can be auto-filled with a person's name suffix.

PhoneNumber

Source set: Common
PhoneNumber

Indicates that the associated component can be auto-filled with a phone number with country code.

Example: +1 123-456-7890

PhoneNumberDevice

Source set: Common
PhoneNumberDevice

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

PhoneCountryCode

Source set: Common
PhoneCountryCode

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

PhoneNumberNational

Source set: Common
PhoneNumberNational

Indicates that the associated component can be auto-filled with a phone number without country code.

Gender

Source set: Common
Gender

Indicates that the associated component can be auto-filled with a gender.

BirthDateFull

Source set: Common
BirthDateFull

Indicates that the associated component can be auto-filled with a full birth date.

BirthDateDay

Source set: Common
BirthDateDay

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

BirthDateMonth

Source set: Common
BirthDateMonth

Indicates that the associated component can be auto-filled with a birth month.

BirthDateYear

Source set: Common
BirthDateYear

Indicates that the associated component can be auto-filled with a birth year.

SmsOtpCode

Source set: Common
SmsOtpCode

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.