Creates a paywall view controller. You can use it to further configure a view or present it.
paywall that you want to present.
Optional
additional params.
ViewController — A promise that resolves to a ViewController instance.
[DOC] Creating a paywall view
const paywall = await adapty.getPaywall("MY_PAYWALL");const view = await createPaywallView(paywall);// Present with default full-screen styleview.present();// Or present with custom style (iOS only)view.present({ iosPresentationStyle: 'page_sheet' }); // or 'full_screen' Copy
const paywall = await adapty.getPaywall("MY_PAYWALL");const view = await createPaywallView(paywall);// Present with default full-screen styleview.present();// Or present with custom style (iOS only)view.present({ iosPresentationStyle: 'page_sheet' }); // or 'full_screen'
— If paywall is not found, does not have a no-code view configured or if there is an error while creating a view.
Creates a paywall view controller. You can use it to further configure a view or present it.