AdaptyFlowScreen

fun AdaptyFlowScreen(flowConfiguration: AdaptyUI.FlowConfiguration, products: List<AdaptyPaywallProduct>?, eventListener: AdaptyFlowEventListener, insets: AdaptyFlowInsets = AdaptyFlowInsets.Unspecified, customAssets: AdaptyCustomAssets = AdaptyCustomAssets.Empty, tagResolver: AdaptyUiTagResolver = AdaptyUiTagResolver.Default, timerResolver: AdaptyUiTimerResolver = AdaptyUiTimerResolver.Default, observerModeHandler: AdaptyUiObserverModeHandler? = null)

Flow screen composable representation

Parameters

flowConfiguration

An AdaptyUI.FlowConfiguration object containing information about the visual part of the flow. To load it, use the AdaptyUI.getFlowConfiguration method.

products

Optional AdaptyPaywallProduct list. Pass this value in order to optimize the display time of the products on the screen. If you pass null, AdaptyUI will automatically fetch the required products.

eventListener

An object that implements the AdaptyFlowEventListener interface. Use it to respond to different events happening inside the purchase screen. Also you can extend AdaptyFlowDefaultEventListener so you don't need to override all the methods.

insets

You can override the default window inset handling by specifying the AdaptyFlowInsets.

customAssets

If you are going to use custom assets functionality, pass AdaptyCustomAssets here.

tagResolver

If you are going to use custom tags functionality, pass the resolver function here.

timerResolver

If you are going to use custom timer functionality, pass the resolver function here.

observerModeHandler

If you use Adapty in Observer mode, pass the AdaptyUiObserverModeHandler implementation to handle purchases on your own.