registerCloseHandler

If this registered, paywall close buttons will call back to this handler for your own custom business logic instead of using the system default, which is to just dismiss the paywall.

NamiPaywallManager.registerCloseHandler { paywall in
    if let paywallVC = paywall {
        paywallVC.dismiss(animated: true)
    }
}

Last updated