AdaptyUIPaywallsEventsObserver
Observes lifecycle events and user interactions within an AdaptyUIPaywallView.
Implement this interface to handle paywall events such as appearing, disappearing, user actions, product selection, purchases, restores, rendering errors, and more.
The default implementation provides convenient behavior such as:
Automatically dismissing the paywall when the close button or system back button is pressed.
Automatically dismissing the paywall after a successful purchase.
You can override individual methods to customize paywall behavior in your app.
Example:
class MyPaywallObserver : AdaptyUIPaywallsEventsObserver {
override fun paywallViewDidFinishPurchase(
view: AdaptyUIPaywallView,
product: AdaptyPaywallProduct,
purchaseResult: AdaptyPurchaseResult
) {
// Custom logic after purchase
}
}Properties
Functions
Called when the paywall view has been presented.
Called when the paywall view has been dismissed.
Called when an error occurs while loading products for the paywall.
Called when a purchase attempt fails.
Called when an error occurs while rendering the paywall UI.
Called when a restore operation fails.
Called when a purchase is successfully completed or canceled.
Called when a restore operation completes successfully.
Called when web payment navigation completes.
Called when a user performs an action on the paywall view.
Called when a product is selected for purchase, either by the user or automatically.
Called when the user initiates the purchase process.
Called when the user initiates a restore process.