AddressElement

open class AddressElement(_identifier: IdentifierSpec, rawValuesMap: Map<IdentifierSpec, String?> = emptyMap(), addressType: AddressType = AddressType.Normal(), countryCodes: Set<String> = emptySet(), countryDropdownFieldController: DropdownFieldController = DropdownFieldController( CountryConfig(countryCodes), rawValuesMap[IdentifierSpec.Country] ), sameAsShippingElement: SameAsShippingElement?, shippingValuesMap: Map<IdentifierSpec, String?>?, isPlacesAvailable: IsPlacesAvailable = DefaultIsPlacesAvailable(), hideCountry: Boolean = false) : SectionMultiFieldElement

Constructors

Link copied to clipboard
constructor(_identifier: IdentifierSpec, rawValuesMap: Map<IdentifierSpec, String?> = emptyMap(), addressType: AddressType = AddressType.Normal(), countryCodes: Set<String> = emptySet(), countryDropdownFieldController: DropdownFieldController = DropdownFieldController( CountryConfig(countryCodes), rawValuesMap[IdentifierSpec.Country] ), sameAsShippingElement: SameAsShippingElement?, shippingValuesMap: Map<IdentifierSpec, String?>?, isPlacesAvailable: IsPlacesAvailable = DefaultIsPlacesAvailable(), hideCountry: Boolean = false)

Properties

Link copied to clipboard
open override val allowsUserInteraction: Boolean = true

Whether the field element allows user interaction.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val identifier: IdentifierSpec
Link copied to clipboard
open override val mandateText: ResolvableString? = null

The mandate text, if any.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun getFormFieldValueFlow(): StateFlow<List<Pair<IdentifierSpec, FormFieldEntry>>>
Link copied to clipboard
open override fun getTextFieldIdentifiers(): StateFlow<List<IdentifierSpec>>
Link copied to clipboard

This will return a controller that abides by the SectionFieldErrorController interface.

Link copied to clipboard
open override fun setRawValue(rawValuesMap: Map<IdentifierSpec, String?>)