AdaptySDK
Loading...
Searching...
No Matches
AdaptySDK.AdaptyPaywallsEventsListener Interface Reference

Interface for listening to paywall view events. More...

Public Member Functions

void PaywallViewDidAppear (AdaptyUIPaywallView view)
 Called when the paywall view appears on screen.
void PaywallViewDidDisappear (AdaptyUIPaywallView view)
 Called when the paywall view disappears from screen.
void PaywallViewDidPerformAction (AdaptyUIPaywallView view, AdaptyUIUserAction action)
 Called when a user performs an action in the paywall view (e.g., button tap, swipe).
void PaywallViewDidSelectProduct (AdaptyUIPaywallView view, string productId)
 Called when a user selects a product in the paywall view.
void PaywallViewDidStartPurchase (AdaptyUIPaywallView view, AdaptyPaywallProduct product)
 Called when a purchase is initiated for a product.
void PaywallViewDidFinishPurchase (AdaptyUIPaywallView view, AdaptyPaywallProduct product, AdaptyPurchaseResult purchasedResult)
 Called when a purchase is successfully completed.
void PaywallViewDidFailPurchase (AdaptyUIPaywallView view, AdaptyPaywallProduct product, AdaptyError error)
 Called when a purchase fails.
void PaywallViewDidStartRestore (AdaptyUIPaywallView view)
 Called when the restore purchases process is initiated.
void PaywallViewDidFinishRestore (AdaptyUIPaywallView view, AdaptyProfile profile)
 Called when the restore purchases process completes successfully.
void PaywallViewDidFailRestore (AdaptyUIPaywallView view, AdaptyError error)
 Called when the restore purchases process fails.
void PaywallViewDidFailRendering (AdaptyUIPaywallView view, AdaptyError error)
 Called when the paywall view fails to render.
void PaywallViewDidFailLoadingProducts (AdaptyUIPaywallView view, AdaptyError error)
 Called when the paywall view fails to load products.
void PaywallViewDidFinishWebPaymentNavigation (AdaptyUIPaywallView view, AdaptyPaywallProduct product, AdaptyError error)
 Called when web payment navigation finishes (for web-based purchases).

Detailed Description

Interface for listening to paywall view events.

Implement this interface to receive notifications about paywall view lifecycle, user actions, purchases, and errors. Use Adapty.SetPaywallsEventsListener(AdaptyPaywallsEventsListener) to register your listener.

Member Function Documentation

◆ PaywallViewDidAppear()

void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidAppear ( AdaptyUIPaywallView view)

Called when the paywall view appears on screen.

Parameters
viewThe AdaptyUIPaywallView that appeared.

◆ PaywallViewDidDisappear()

void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidDisappear ( AdaptyUIPaywallView view)

Called when the paywall view disappears from screen.

Parameters
viewThe AdaptyUIPaywallView that disappeared.

◆ PaywallViewDidFailLoadingProducts()

void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidFailLoadingProducts ( AdaptyUIPaywallView view,
AdaptyError error )

Called when the paywall view fails to load products.

Parameters
viewThe AdaptyUIPaywallView that failed to load products.
errorThe AdaptyError object describing the error.

◆ PaywallViewDidFailPurchase()

void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidFailPurchase ( AdaptyUIPaywallView view,
AdaptyPaywallProduct product,
AdaptyError error )

Called when a purchase fails.

Parameters
viewThe AdaptyUIPaywallView where the purchase failed.
productThe AdaptyPaywallProduct that failed to purchase.
errorThe AdaptyError object describing the error.

◆ PaywallViewDidFailRendering()

void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidFailRendering ( AdaptyUIPaywallView view,
AdaptyError error )

Called when the paywall view fails to render.

Parameters
viewThe AdaptyUIPaywallView that failed to render.
errorThe AdaptyError object describing the error.

◆ PaywallViewDidFailRestore()

void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidFailRestore ( AdaptyUIPaywallView view,
AdaptyError error )

Called when the restore purchases process fails.

Parameters
viewThe AdaptyUIPaywallView where the restore failed.
errorThe AdaptyError object describing the error.

◆ PaywallViewDidFinishPurchase()

void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidFinishPurchase ( AdaptyUIPaywallView view,
AdaptyPaywallProduct product,
AdaptyPurchaseResult purchasedResult )

Called when a purchase is successfully completed.

Parameters
viewThe AdaptyUIPaywallView where the purchase was completed.
productThe AdaptyPaywallProduct that was purchased.
purchasedResultThe AdaptyPurchaseResult object containing purchase details.

◆ PaywallViewDidFinishRestore()

void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidFinishRestore ( AdaptyUIPaywallView view,
AdaptyProfile profile )

Called when the restore purchases process completes successfully.

Parameters
viewThe AdaptyUIPaywallView where the restore was completed.
profileThe updated AdaptyProfile object containing restored purchases.

◆ PaywallViewDidFinishWebPaymentNavigation()

void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidFinishWebPaymentNavigation ( AdaptyUIPaywallView view,
AdaptyPaywallProduct product,
AdaptyError error )

Called when web payment navigation finishes (for web-based purchases).

Parameters
viewThe AdaptyUIPaywallView where the navigation occurred.
productThe AdaptyPaywallProduct associated with the web payment.
errorThe AdaptyError object, or null if no error occurred.

◆ PaywallViewDidPerformAction()

void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidPerformAction ( AdaptyUIPaywallView view,
AdaptyUIUserAction action )

Called when a user performs an action in the paywall view (e.g., button tap, swipe).

Parameters
viewThe AdaptyUIPaywallView where the action occurred.
actionThe AdaptyUIUserAction object describing the action.

◆ PaywallViewDidSelectProduct()

void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidSelectProduct ( AdaptyUIPaywallView view,
string productId )

Called when a user selects a product in the paywall view.

Parameters
viewThe AdaptyUIPaywallView where the selection occurred.
productIdThe identifier of the selected product.

◆ PaywallViewDidStartPurchase()

void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidStartPurchase ( AdaptyUIPaywallView view,
AdaptyPaywallProduct product )

Called when a purchase is initiated for a product.

Parameters
viewThe AdaptyUIPaywallView where the purchase was initiated.
productThe AdaptyPaywallProduct being purchased.

◆ PaywallViewDidStartRestore()

void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidStartRestore ( AdaptyUIPaywallView view)

Called when the restore purchases process is initiated.

Parameters
viewThe AdaptyUIPaywallView where the restore was initiated.

The documentation for this interface was generated from the following file: