SecurityCodeTextFieldEvent

Sealed interface representing events triggered by the security code text field. This interface defines various events that can occur during security code (CVV) input, providing real-time feedback about the input state and validation.

The events include focus changes, input completion, and length changes, all of which help in providing a smooth security code input experience.

Example:

// Handle security code events
when (event) {
is SecurityCodeTextFieldEvent.OnFocusChanged -> {
if (event.isFocused) {
// Show security code hint
}
}
is SecurityCodeTextFieldEvent.OnInputFilled -> {
if (event.isFilled) {
// Handle complete input
}
}
is SecurityCodeTextFieldEvent.OnLengthChanged -> {
// Update progress indicator
}
}

See also

Inheritors

Types

Link copied to clipboard

Event triggered when the focus state of the security code 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.

Link copied to clipboard

Event triggered when the security code input is completely filled. This event indicates whether all required digits for the security code have been entered.

Link copied to clipboard

Event triggered when the length of the security code input changes. This event helps track the progress of security code input and can be used to update UI elements like progress indicators.