OnLengthChanged

data class OnLengthChanged(val length: Int) : CardNumberTextFieldEvent

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

Parameters

length

The current number of digits entered

Example:

when (event) {
is CardNumberTextFieldEvent.OnLengthChanged -> {
updateProgressBar(event.length)
}
}

Constructors

Link copied to clipboard
constructor(length: Int)

Properties

Link copied to clipboard
val length: Int