getFlowConfiguration

fun getFlowConfiguration(flow: AdaptyFlow, locale: String? = null, loadTimeout: TimeInterval = DEFAULT_PLACEMENT_TIMEOUT, customLayoutId: String? = null, callback: ResultCallback<AdaptyUI.FlowConfiguration>)

If you are using the Flow Builder, you can use this method to get a configuration object for your flow.

Should not be called before Adapty.activate

Parameters

flow

The AdaptyFlow for which you want to get a configuration.

locale

The locale whose localization will be used for rendering. If null, the en localization is used if present, otherwise the default localization of the view configuration.

loadTimeout

This value limits the timeout for this method. The minimum value is 1 second. If a timeout is not required, you can pass TimeInterval.INFINITE.

customLayoutId

If the flow defines custom layouts, the id of the layout to render. If null, the layout is chosen automatically based on the current device.

callback

A result containing the FlowConfiguration object.

See also