-
- All Implemented Interfaces:
-
com.adyen.checkout.components.ActionComponent,com.adyen.checkout.components.Component,com.adyen.checkout.components.Component,com.adyen.checkout.components.ViewableComponent
public class AwaitComponent extends BaseActionComponent<AwaitConfiguration> implements ViewableComponent<AwaitOutputData, AwaitConfiguration, ActionComponentData>
-
-
Field Summary
Fields Modifier and Type Field Description final static StringTAGpublic final static ActionComponentProvider<AwaitComponent, AwaitConfiguration>PROVIDERfinal StatusRepositorymStatusRepository
-
Constructor Summary
Constructors Constructor Description AwaitComponent(Application application, AwaitConfiguration configuration)
-
Method Summary
Modifier and Type Method Description voidobserve(LifecycleOwner lifecycleOwner, Observer<ActionComponentData> observer)voidonPollingSuccessful(StatusResponse statusResponse)voidobserveOutputData(LifecycleOwner lifecycleOwner, Observer<AwaitOutputData> observer)AwaitOutputDatagetOutputData()voidsendAnalyticsEvent(Context context)voidcreateOutputData(StatusResponse statusResponse)-
Methods inherited from class com.adyen.checkout.components.base.BaseActionComponent
canHandleAction, getPaymentData, getSupportedActionTypes, getSupportedPaymentMethodTypes, handleAction, handleActionInternal, notifyDetails, notifyException, observe, observeErrors, restoreState, saveState -
Methods inherited from class com.adyen.checkout.components.base.lifecycle.ActionComponentViewModel
getConfiguration -
Methods inherited from class androidx.lifecycle.AndroidViewModel
getApplication -
Methods inherited from class androidx.lifecycle.ViewModel
clear, closeWithRuntimeException, getTag, onCleared, setTagIfAbsent -
Methods inherited from class com.adyen.checkout.components.ViewableComponent
getOutputData, observeOutputData, sendAnalyticsEvent -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AwaitComponent
AwaitComponent(Application application, AwaitConfiguration configuration)
-
-
Method Detail
-
observe
void observe(LifecycleOwner lifecycleOwner, Observer<ActionComponentData> observer)
-
onPollingSuccessful
void onPollingSuccessful(StatusResponse statusResponse)
-
observeOutputData
void observeOutputData(LifecycleOwner lifecycleOwner, Observer<AwaitOutputData> observer)
-
getOutputData
@Nullable() AwaitOutputData getOutputData()
-
sendAnalyticsEvent
void sendAnalyticsEvent(Context context)
-
createOutputData
void createOutputData(StatusResponse statusResponse)
-
-
-
-