Interface Autocomplete.AddressStructure.Field

All Known Implementing Classes:
Autocomplete.AddressStructure.Field.SelectField, Autocomplete.AddressStructure.Field.TextField
Enclosing class:
Autocomplete.AddressStructure

public static interface Autocomplete.AddressStructure.Field
Describes how UI clients should render a single row (field) in an address
  • Method Details

    • getId

      @NonNull @AnyThread default String getId()
      The ID for the field. Maps 1:1 to a field on an Address.
      Returns:
      the id.
    • getLocalizationKey

      @NonNull @AnyThread default String getLocalizationKey()
      Returns the localization key used to obtain a human-readable label for this field.

      This key allows the embedding application to look up the display string in its own resources (e.g., `autofill-address-name`). It is not a user-visible string.

      Returns:
      the localization key.