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
open override fun onAwaitingSubscriptionUpdateParams(    product: AdaptyPaywallProduct,     context: Context,     onSubscriptionUpdateParamsReceived: AdaptyUiEventListener.SubscriptionUpdateParamsCallback)

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 onPurchaseFailure(    error: AdaptyError,     product: AdaptyPaywallProduct,     context: Context)

This callback is invoked when the purchase process fails.

Link copied to clipboard
open override fun onPurchaseFinished(    purchaseResult: AdaptyPurchaseResult,     product: AdaptyPaywallProduct,     context: Context)

This callback is invoked to inform on a canceled, successful, and pending purchase.

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 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.