PostalCodeConfig

class PostalCodeConfig(@StringRes val label: Int, val trailingIcon: MutableStateFlow<TextFieldIcon?> = MutableStateFlow(null), country: String) : TextFieldConfig

Constructors

Link copied to clipboard
constructor(@StringRes label: Int, trailingIcon: MutableStateFlow<TextFieldIcon?> = MutableStateFlow(null), country: String)

Types

Link copied to clipboard

Properties

Link copied to clipboard

This specifies how the field should be capitalized

Link copied to clipboard
open override val debugLabel: String

This is a label for debug logs

Link copied to clipboard
open override val keyboard: KeyboardType

This is the type of keyboard to use for this field

Link copied to clipboard
open override val label: Int

This is the label to describe the field

Link copied to clipboard
open override val loading: MutableStateFlow<Boolean>
Link copied to clipboard
open val placeHolder: String?
Link copied to clipboard
open override val trailingIcon: MutableStateFlow<TextFieldIcon?>
Link copied to clipboard

Transformation for changing visual output of the input field.

Functions

Link copied to clipboard
open override fun convertFromRaw(rawValue: String): String

This will convert from a raw value used in the parameter map to a disiplayValue

Link copied to clipboard
open override fun convertToRaw(displayName: String): String

This will convert the field to a raw value to use in the parameter map

Link copied to clipboard
open override fun determineState(input: String): TextFieldState

This will determine the state of the field based on the text

Link copied to clipboard
open override fun filter(userTyped: String): String

This works a little like the input filter, removing pasted characters that are invalid in the case where the keyboard allows more than the allowed characters, or characters are pasted in