ComponentT - The PaymentComponent this view is able to interact with.public interface ComponentView<OutputDataT extends OutputData,ComponentT extends ViewableComponent>
| Modifier and Type | Method and Description |
|---|---|
void |
attach(ComponentT component,
LifecycleOwner lifecycleOwner)
Attach the
PaymentComponent to the view to interact with. |
void |
highlightValidationErrors()
Highlight and focus on the current validation errors for the user to take action.
|
void |
initView()
This function will be called when the component is attached and the view is ready to get initialized.
|
boolean |
isConfirmationRequired()
Tells if the view interaction requires confirmation from the user to start the payment flow.
|
void |
onComponentAttached()
This function will be called when the component got attached to the View.
|
void attach(ComponentT component, LifecycleOwner lifecycleOwner)
PaymentComponent to the view to interact with.component - The component.lifecycleOwner - The lifecycle owner where the view is.void onComponentAttached()
void initView()
boolean isConfirmationRequired()
void highlightValidationErrors()