getPaywallForDefaultAudience
Fetches the paywall of the specified placement for the All Users audience.
With Adapty, you can remotely configure the products and offers in your app by simply adding them to paywalls – no need for hardcoding them. The only thing you hardcode is the placement ID.
This flexibility allows you to easily update paywalls, products, and offers, or run A/B tests, all without the need for a new app release.
However, it’s crucial to understand that the recommended approach is to fetch the paywall through the placement ID by the getPaywall method. The getPaywallForDefaultAudience
method should be a last resort due to its significant drawbacks. See docs for more details
Should not be called before activate
Parameters
The identifier of the desired placement. This is the value you specified when you created the placement in the Adapty Dashboard.
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. If the parameter is omitted, the paywall will be returned in the default locale.
By default SDK will try to load data from server and will return cached data in case of failure. Otherwise use AdaptyPaywall.FetchPolicy.ReturnCacheDataElseLoad to return cached data if it exists.
A result containing the AdaptyPaywall object. This model contains the list of the products ids, paywall’s identifier, custom payload, and several other properties.