adaptyteam / AdaptyUI-Unity

Extension to the Adapty SDK that allows you to easily add purchase screens to your application.
https://docs.adapty.io/docs/paywall-builder-getting-started
MIT License
6 stars 0 forks source link


Adapty UI

AdaptyUI is an open-source framework that is an extension to the Adapty SDK that allows you to easily add purchase screens to your application. It’s 100% open-source, native, and lightweight.

1. Fetching Paywalls & ViewConfiguration

Paywall can be obtained in the way you are already familiar with:

using AdaptySDK;

Adapty.GetPaywall(id, (paywall, error) => {
  // handle the error and use the paywall
});

After fetching the paywall call the AdaptyUI.createPaywallView() method to assembly the view:

using AdaptySDK;

AdaptyUI.CreatePaywallView(paywall, locale: 'en', preloadProducts: true, (view, error) => {
  // use the view
});

2. Presenting Visual Paywalls

In order to display the visual paywall on the device screen, you may just simply call .Present() method of the view, obtained during the previous step:

view.Present((error) => {
  // handle the error
});

3. Full Documentation and Next Steps

We recommend that you read the full documentation. If you are not familiar with Adapty, then start here.

Contributing

Like AdaptyUI?

So do we! Feel free to star the repo ⭐️⭐️⭐️ and make our developers happy!

License

AdaptyUI is available under the MIT license. Click here for details.