Visual constructor
Test out the best Paywalls and Welcome Pages of your Android Apps with Appflow.ai Visual Constructor
Paywall
Appflow.showPaywall(context: Context, listener: PaywallListener)Appflow.closePaywall() Example
Appflow.showPaywall(context, object : Appflow.PaywallListener {
override fun onPurchaseCompleted(purchase: Purchase) {
Toast.makeText(this@MainActivity, "successful purchase ${purchase.skus}", Toast.LENGTH_SHORT).show()
}
override fun onClose() {}
override fun onFail(msg: String?) {
Toast.makeText(this@MainActivity, "show paywall fail $msg", Toast.LENGTH_LONG).show()
// or
// Appflow.closePaywall()
}
})API Reference
PaywallListener
WelcomePage
Example
API Reference
WelcomeViewListener
Last updated
Was this helpful?