getViewConfiguration

fun getViewConfiguration(paywall: AdaptyPaywall, locale: String, @IntRange(from = 1000) loadTimeoutMillis: Int = DEFAULT_PAYWALL_TIMEOUT_MILLIS, callback: ResultCallback<AdaptyViewConfiguration>)

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 activate

Parameters

paywall

The AdaptyPaywall for which you want to get a configuration.

locale

This parameter is expected to be a language code composed of one or more subtags separated by the "-" character. The first subtag is for the language, the second one is for the region (The support for regions will be added later). Example: "en" means English, "en-US" represents US English.

loadTimeoutMillis

This value limits the timeout for this method. The minimum value is 1000 milliseconds. If a timeout is not required, you can pass Int.MAX_VALUE (or use Integer.MAX_VALUE when calling from Java).

callback

A result containing the AdaptyViewConfiguration object. Use it with AdaptyUI library.