getViewConfiguration

fun getViewConfiguration(paywall: AdaptyPaywall, loadTimeout: TimeInterval = DEFAULT_PAYWALL_TIMEOUT, callback: ResultCallback<AdaptyUI.ViewConfiguration>)

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

Should not be called before Adapty.activate

Parameters

paywall

The AdaptyPaywall for which you want to get a 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.

callback

A result containing the ViewConfiguration object.