OnFocusChanged
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()
}
}
}
Content copied to clipboard