get

open fun get(fragment: Fragment, checkoutConfiguration: CheckoutConfiguration, callback: ActionComponentCallback, key: String? = null): ComponentT

Get an ActionComponent.

Return

The Component

Parameters

fragment

The Fragment to associate the lifecycle.

checkoutConfiguration
callback

The callback to handle events from the ActionComponent.

key

The key to use to identify the ActionComponent.

NOTE: By default only one ActionComponent will be created per lifecycle. Use key in case you need to instantiate multiple ActionComponents in the same lifecycle.


open fun get(activity: ComponentActivity, checkoutConfiguration: CheckoutConfiguration, callback: ActionComponentCallback, key: String? = null): ComponentT

Get an ActionComponent.

Return

The Component

Parameters

activity

The Activity to associate the lifecycle.

checkoutConfiguration
callback

The callback to handle events from the ActionComponent.

key

The key to use to identify the ActionComponent.

NOTE: By default only one ActionComponent will be created per lifecycle. Use key in case you need to instantiate multiple ActionComponents in the same lifecycle.


abstract fun get(savedStateRegistryOwner: SavedStateRegistryOwner, viewModelStoreOwner: ViewModelStoreOwner, lifecycleOwner: LifecycleOwner, application: Application, checkoutConfiguration: CheckoutConfiguration, callback: ActionComponentCallback, key: String? = null): ComponentT

Get an ActionComponent.

Return

The Component

Parameters

savedStateRegistryOwner

The owner of the SavedStateRegistry, normally an Activity or Fragment.

viewModelStoreOwner

A scope that owns ViewModelStore, normally an Activity or Fragment.

lifecycleOwner

The lifecycle owner, normally an Activity or Fragment.

application

Your main application class.

checkoutConfiguration
callback

The callback to handle events from the ActionComponent.

key

The key to use to identify the ActionComponent.

NOTE: By default only one ActionComponent will be created per lifecycle. Use key in case you need to instantiate multiple ActionComponents in the same lifecycle.


open fun get(fragment: Fragment, configuration: ConfigurationT, callback: ActionComponentCallback, key: String? = null): ComponentT

Get an ActionComponent.

Return

The Component

Parameters

fragment

The Fragment to associate the lifecycle.

configuration

The Configuration of the component.

callback

The callback to handle events from the ActionComponent.

key

The key to use to identify the ActionComponent.

NOTE: By default only one ActionComponent will be created per lifecycle. Use key in case you need to instantiate multiple ActionComponents in the same lifecycle.


open fun get(activity: ComponentActivity, configuration: ConfigurationT, callback: ActionComponentCallback, key: String? = null): ComponentT

Get an ActionComponent.

Return

The Component

Parameters

activity

The Activity to associate the lifecycle.

configuration

The Configuration of the component.

callback

The callback to handle events from the ActionComponent.

key

The key to use to identify the ActionComponent.

NOTE: By default only one ActionComponent will be created per lifecycle. Use key in case you need to instantiate multiple ActionComponents in the same lifecycle.


abstract fun get(savedStateRegistryOwner: SavedStateRegistryOwner, viewModelStoreOwner: ViewModelStoreOwner, lifecycleOwner: LifecycleOwner, application: Application, configuration: ConfigurationT, callback: ActionComponentCallback, key: String? = null): ComponentT

Get an ActionComponent.

Return

The Component

Parameters

savedStateRegistryOwner

The owner of the SavedStateRegistry, normally an Activity or Fragment.

viewModelStoreOwner

A scope that owns ViewModelStore, normally an Activity or Fragment.

lifecycleOwner

The lifecycle owner, normally an Activity or Fragment.

application

Your main application class.

configuration

The Configuration of the component.

callback

The callback to handle events from the ActionComponent.

key

The key to use to identify the ActionComponent.

NOTE: By default only one ActionComponent will be created per lifecycle. Use key in case you need to instantiate multiple ActionComponents in the same lifecycle.