Function createPaywallView

  • Creates a paywall view controller. You can use it to further configure a view or present it.

    Parameters

    Returns Promise<ViewController>

    ViewController — A promise that resolves to a ViewController instance.

    See

    [DOC] Creating a paywall view

    Example

    const paywall = await adapty.getPaywall("MY_PAYWALL");
    const view = await createPaywallView(paywall);
    view.present();

    Throws

    — If paywall is not found, does not have a no-code view configured or if there is an error while creating a view.

Generated using TypeDoc