IdentificationTextFieldEvent
Sealed interface representing events triggered by the identification text field. This interface defines events that can occur during identification input, providing real-time feedback about the input state and type selection.
The events include value changes, focus changes, and identification type selection, all of which help in providing a smooth identification input experience.
Example:
// Handle identification text field events
when (event) {
is IdentificationTextFieldEvent.OnValueChanged -> {
// Handle value change
println("New value: ${event.value}")
}
is IdentificationTextFieldEvent.OnFocusChanged -> {
if (event.isFocused) {
// Show hint or perform action on focus
}
}
is IdentificationTextFieldEvent.OnTypeSelected -> {
// Handle identification type selection
println("Selected type: ${event.identificationType.name}")
}
}See also
Inheritors
Types
Event triggered when the focus state of the identification field changes. This event helps manage the visual state of the input field and can be used to show/hide additional UI elements based on focus.
Event triggered when an identification type is selected from the dropdown. This event provides the selected identification type including its validation rules.
Event triggered when the identification value changes. This event is fired whenever the user types or deletes characters, providing the current input value.