OnFocusChanged

data class OnFocusChanged(val isFocused: Boolean) : CardNumberTextFieldEvent

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

Parameters

isFocused

Whether the field currently has focus

Example:

when (event) {
is CardNumberTextFieldEvent.OnFocusChanged -> {
if (event.isFocused) {
showCardTypeHint()
} else {
hideCardTypeHint()
}
}
}

Constructors

Link copied to clipboard
constructor(isFocused: Boolean)

Properties

Link copied to clipboard