IsValid
Event triggered when the card number validation status changes. This event indicates whether the entered card number passes the Luhn algorithm validation, helping to determine if the input is valid.
Parameters
isValid
Whether the card number is valid according to the Luhn algorithm
Example:
when (event) {
is CardNumberTextFieldEvent.IsValid -> {
if (event.isValid) {
enableNextButton()
} else {
disableNextButton()
}
}
}
Content copied to clipboard