AdaptyUiEventListener

Implement this interface to respond to different events happening inside the purchase screen.

Inheritors

Functions

Link copied to clipboard
abstract 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
abstract fun onLoadingProductsFailure(error: AdaptyError, context: Context): Boolean

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

Link copied to clipboard
abstract 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
abstract fun onPurchaseCanceled(product: AdaptyPaywallProduct, context: Context)

This callback is invoked when user cancels the purchase manually.

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

This callback is invoked when the purchase process fails.

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

This callback is invoked when user initiates the purchase process.

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

This callback is invoked when a successful purchase is made.

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

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

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

This callback is invoked when the restore process fails.

Link copied to clipboard
abstract fun onRestoreStarted(context: Context)

This callback is invoked when user initiates the restore process.

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

This callback is invoked when a successful restore is made.