Package com.adyen.checkout.redirect
Class RedirectComponent
-
- 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 RedirectComponent extends ViewModel implements ActionComponent, IntentHandlingComponent, ViewableComponent, RedirectableActionComponent
An ActionComponent that is able to handle the 'redirect' action.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classRedirectComponent.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static ActionComponentProvider<RedirectComponent, RedirectConfiguration, RedirectDelegate>PROVIDERpublic final static <Error class: unknown class>REDIRECT_RESULT_SCHEMEprivate final Flow<ComponentViewType>viewFlowprivate final RedirectDelegatedelegatepublic final static RedirectComponent.CompanionCompanion
-
Method Summary
Modifier and Type Method Description Flow<ComponentViewType>getViewFlow()RedirectDelegategetDelegate()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
RedirectDelegate 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)
-
-
-
-