onValidStateChanged

open fun onValidStateChanged(isValid: Boolean, invalidFields: Set<CardField>)

Called whenever isValid 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