onInputChanged

abstract fun onInputChanged(isValid: Boolean, invalidFields: Set<CardField>)

Called whenever input changes on the control.

Parameters

isValid

Whether or not the control is in a valid state

invalidFields

If isValid is false, contains the list of CardField fields that are invalid. If isValid is true, this is an empty set