Overview
Set the PrimerInputElementListener
in order to receive different callbacks from Primer SDK.
inputElementValueChanged
This method will return when the inputElement
value changes.
1
fun inputElementValueChanged(inputElement: PrimerInputElement)
kotlin
copy
Parameters
inputElementPrimerInputElementRequired
inputElementValueIsValid
This method will return when the inputElement
value changes.
1
fun inputElementValueIsValid(inputElement: PrimerInputElement, isValid: Boolean)
kotlin
copy
Parameters
inputElementPrimerInputElementRequired
isValidBooleanRequired
Returns true
in case the PrimerInputElement
data is valid, otherwise false
.
inputElementDidDetectCardType
This method will return when the inputElement
value changes.
1
fun inputElementDidDetectCardType(network: CardNetwork.Type) = Unit
kotlin
copy
Parameters
networkCardNetwork.TypeRequired
Returns detected CardNetwork.Type
.