paywallConfiguration
suspend fun paywallConfiguration(identifier: String, localeIdentifier: String = Locale.getDefault().toLanguageTag(), fallback: ResolvedPaywallConfiguration? = null): ResolvedPaywallConfiguration
Returns the paywall configuration for an identifier.
A cached configuration is returned immediately while the remote configuration refreshes in the background. Without a cache, the remote configuration is loaded, and fallback is returned when the request fails.
Parameters
identifier
The paywall identifier created in Purpl.
localeIdentifier
The BCP 47 language tag to request.
fallback
The local configuration to use when no remote configuration is available.