Properties

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun canHandleAction(action: Action): Boolean

Checks if the provided component can handle a given action.

Link copied to clipboard
open fun get(activity: ComponentActivity, configuration: ConfigurationT, callback: ActionComponentCallback, key: String? = null): ComponentT
open fun get(activity: ComponentActivity, checkoutConfiguration: CheckoutConfiguration, callback: ActionComponentCallback, key: String? = null): ComponentT
open fun get(fragment: Fragment, configuration: ConfigurationT, callback: ActionComponentCallback, key: String? = null): ComponentT
open fun get(fragment: Fragment, checkoutConfiguration: CheckoutConfiguration, callback: ActionComponentCallback, key: String? = null): ComponentT
abstract fun get(savedStateRegistryOwner: SavedStateRegistryOwner, viewModelStoreOwner: ViewModelStoreOwner, lifecycleOwner: LifecycleOwner, application: Application, configuration: ConfigurationT, callback: ActionComponentCallback, key: String? = null): ComponentT
abstract fun get(savedStateRegistryOwner: SavedStateRegistryOwner, viewModelStoreOwner: ViewModelStoreOwner, lifecycleOwner: LifecycleOwner, application: Application, checkoutConfiguration: CheckoutConfiguration, callback: ActionComponentCallback, key: String? = null): ComponentT
Link copied to clipboard
abstract fun getDelegate(checkoutConfiguration: CheckoutConfiguration, savedStateHandle: SavedStateHandle, application: Application): DelegateT
Link copied to clipboard
abstract fun providesDetails(action: Action): Boolean

Checks if the provided component will trigger any updates through the ActionComponentCallback or not. If false, no events will be fired and you don't need to make a /payments/details API call. The component only serves to present some final data to the shopper.