AdaptyUiDefaultEventListener

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun onActionPerformed(action: AdaptyUI.Action, context: Context)

This callback is invoked when user interacts with some widgets on the paywall.

Link copied to clipboard

This callback is invoked when user initiates the purchase process, providing the ability to supply an AdaptySubscriptionUpdateParameters object. This is used when you need one subscription to be replaced with another.

Link copied to clipboard
open override fun onLoadingProductsFailure(error: AdaptyError, context: Context): Boolean

This callback is invoked in case of errors during the products loading process.

Link copied to clipboard
open override fun onProductSelected(product: AdaptyPaywallProduct, context: Context)

This callback is invoked when a product was selected for purchase (by user or by system).

Link copied to clipboard
open override fun onPurchaseCanceled(product: AdaptyPaywallProduct, context: Context)

This callback is invoked when user cancels the purchase manually.

Link copied to clipboard
open override fun onPurchaseFailure(error: AdaptyError, product: AdaptyPaywallProduct, context: Context)

This callback is invoked when the purchase process fails.

Link copied to clipboard
open override fun onPurchaseStarted(product: AdaptyPaywallProduct, context: Context)

This callback is invoked when user initiates the purchase process.

Link copied to clipboard
open override fun onPurchaseSuccess(purchasedInfo: AdaptyPurchasedInfo?, product: AdaptyPaywallProduct, context: Context)

This callback is invoked when a successful purchase is made.

Link copied to clipboard
open override fun onRenderingError(error: AdaptyError, context: Context)

This callback is invoked in case of errors during the screen rendering process.

Link copied to clipboard
open override fun onRestoreFailure(error: AdaptyError, context: Context)

This callback is invoked when the restore process fails.

Link copied to clipboard
open override fun onRestoreStarted(context: Context)

This callback is invoked when user initiates the restore process.

Link copied to clipboard
open override fun onRestoreSuccess(profile: AdaptyProfile, context: Context)

This callback is invoked when a successful restore is made.