Package com.adyen.checkout.qrcode
Class QRCodeComponent
-
- All Implemented Interfaces:
-
com.adyen.checkout.components.core.RedirectableActionComponent,com.adyen.checkout.components.core.internal.ActionComponent,com.adyen.checkout.components.core.internal.Component,com.adyen.checkout.components.core.internal.IntentHandlingComponent,com.adyen.checkout.components.core.internal.ResultHandlingComponent,com.adyen.checkout.ui.core.internal.ui.ViewableComponent
public final class QRCodeComponent extends ViewModel implements ActionComponent, IntentHandlingComponent, ViewableComponent, RedirectableActionComponent
An ActionComponent that is able to handle the 'qrCode' action.
-
-
Field Summary
Fields Modifier and Type Field Description public final static ActionComponentProvider<QRCodeComponent, QRCodeConfiguration, QRCodeDelegate>PROVIDERprivate final Flow<ComponentViewType>viewFlowprivate final QRCodeDelegatedelegate
-
Method Summary
Modifier and Type Method Description Flow<ComponentViewType>getViewFlow()QRCodeDelegategetDelegate()BooleancanHandleAction(Action action)UnithandleAction(Action action, Activity activity)UnithandleIntent(Intent intent)Call this method when receiving the return URL from the redirect with the result data. UnitsetOnRedirectListener(Function0<Unit> listener)-
-
Method Detail
-
getViewFlow
Flow<ComponentViewType> getViewFlow()
-
getDelegate
QRCodeDelegate getDelegate()
-
canHandleAction
Boolean canHandleAction(Action action)
-
handleAction
Unit handleAction(Action action, Activity activity)
-
handleIntent
Unit handleIntent(Intent intent)
Call this method when receiving the return URL from the redirect with the result data. This result will be in the Intent.getData and begins with the returnUrl you specified on the payments/ call.
- Parameters:
intent- The received Intent.
-
setOnRedirectListener
Unit setOnRedirectListener(Function0<Unit> listener)
-
-
-
-