|
AdaptySDK
|
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). | |
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.
| void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidAppear | ( | AdaptyUIPaywallView | view | ) |
Called when the paywall view appears on screen.
| view | The AdaptyUIPaywallView that appeared. |
| void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidDisappear | ( | AdaptyUIPaywallView | view | ) |
Called when the paywall view disappears from screen.
| view | The AdaptyUIPaywallView that disappeared. |
| void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidFailLoadingProducts | ( | AdaptyUIPaywallView | view, |
| AdaptyError | error ) |
Called when the paywall view fails to load products.
| view | The AdaptyUIPaywallView that failed to load products. |
| error | The AdaptyError object describing the error. |
| void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidFailPurchase | ( | AdaptyUIPaywallView | view, |
| AdaptyPaywallProduct | product, | ||
| AdaptyError | error ) |
Called when a purchase fails.
| view | The AdaptyUIPaywallView where the purchase failed. |
| product | The AdaptyPaywallProduct that failed to purchase. |
| error | The AdaptyError object describing the error. |
| void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidFailRendering | ( | AdaptyUIPaywallView | view, |
| AdaptyError | error ) |
Called when the paywall view fails to render.
| view | The AdaptyUIPaywallView that failed to render. |
| error | The AdaptyError object describing the error. |
| void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidFailRestore | ( | AdaptyUIPaywallView | view, |
| AdaptyError | error ) |
Called when the restore purchases process fails.
| view | The AdaptyUIPaywallView where the restore failed. |
| error | The AdaptyError object describing the error. |
| void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidFinishPurchase | ( | AdaptyUIPaywallView | view, |
| AdaptyPaywallProduct | product, | ||
| AdaptyPurchaseResult | purchasedResult ) |
Called when a purchase is successfully completed.
| view | The AdaptyUIPaywallView where the purchase was completed. |
| product | The AdaptyPaywallProduct that was purchased. |
| purchasedResult | The AdaptyPurchaseResult object containing purchase details. |
| void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidFinishRestore | ( | AdaptyUIPaywallView | view, |
| AdaptyProfile | profile ) |
Called when the restore purchases process completes successfully.
| view | The AdaptyUIPaywallView where the restore was completed. |
| profile | The updated AdaptyProfile object containing restored purchases. |
| void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidFinishWebPaymentNavigation | ( | AdaptyUIPaywallView | view, |
| AdaptyPaywallProduct | product, | ||
| AdaptyError | error ) |
Called when web payment navigation finishes (for web-based purchases).
| view | The AdaptyUIPaywallView where the navigation occurred. |
| product | The AdaptyPaywallProduct associated with the web payment. |
| error | The AdaptyError object, or null if no error occurred. |
| void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidPerformAction | ( | AdaptyUIPaywallView | view, |
| AdaptyUIUserAction | action ) |
Called when a user performs an action in the paywall view (e.g., button tap, swipe).
| view | The AdaptyUIPaywallView where the action occurred. |
| action | The AdaptyUIUserAction object describing the action. |
| void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidSelectProduct | ( | AdaptyUIPaywallView | view, |
| string | productId ) |
Called when a user selects a product in the paywall view.
| view | The AdaptyUIPaywallView where the selection occurred. |
| productId | The identifier of the selected product. |
| void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidStartPurchase | ( | AdaptyUIPaywallView | view, |
| AdaptyPaywallProduct | product ) |
Called when a purchase is initiated for a product.
| view | The AdaptyUIPaywallView where the purchase was initiated. |
| product | The AdaptyPaywallProduct being purchased. |
| void AdaptySDK.AdaptyPaywallsEventsListener.PaywallViewDidStartRestore | ( | AdaptyUIPaywallView | view | ) |
Called when the restore purchases process is initiated.
| view | The AdaptyUIPaywallView where the restore was initiated. |