Universal Checkout simplifies the process of creating input views by introducing PrimerInputElement
as an abstraction. To leverage this functionality, you can easily generate input views using
PrimerEditTextFactory.createFromType(context, inputElementType)
where inputElementType
is
returned in getRequiredInputElementTypes method.
This method allows you to seamlessly connect your form with the Card components manager,
streamlining the overall workflow.
1
fun setInputElements(elements: List<PrimerInputElement>)
kotlin
copy
Parameters
elementsList<PrimerInputElement>Required
PrimerInputElement
Methods
setPrimerInputElementListener(listener)
Set the PrimerInputElementListener in order to receive different callbacks from Primer SDK.
getType(): PrimerInputElementType
Returns PrimerInputElementType
associated with PrimerInputElement
.
isValid(): Boolean
Returns true
in case the PrimerInputElement
data is valid, otherwise false
.