|
AdaptySDK 4.1.1
|
Interface for listening to flow view events. More...
Public Member Functions | |
| void | FlowViewDidAppear (AdaptyUIFlowView view) |
| Called when the flow view appears on screen. | |
| void | FlowViewDidDisappear (AdaptyUIFlowView view) |
| Called when the flow view disappears from screen. | |
| void | FlowViewDidPerformAction (AdaptyUIFlowView view, AdaptyUIUserAction action) |
| Called when a user performs an action in the flow view (e.g., close, system back, opening a URL, custom actions). | |
| void | FlowViewDidSelectProduct (AdaptyUIFlowView view, string productId) |
| Called when a user selects a product in the flow view. | |
| void | FlowViewDidStartPurchase (AdaptyUIFlowView view, AdaptyPaywallProduct product) |
| Called when a purchase is initiated for a product. | |
| void | FlowViewDidFinishPurchase (AdaptyUIFlowView view, AdaptyPaywallProduct product, AdaptyPurchaseResult purchasedResult) |
| Called when a purchase is successfully completed. | |
| void | FlowViewDidFailPurchase (AdaptyUIFlowView view, AdaptyPaywallProduct product, AdaptyError error) |
| Called when a purchase fails. | |
| void | FlowViewDidStartRestore (AdaptyUIFlowView view) |
| Called when the restore purchases process is initiated. | |
| void | FlowViewDidFinishRestore (AdaptyUIFlowView view, AdaptyProfile profile) |
| Called when the restore purchases process completes successfully. | |
| void | FlowViewDidFailRestore (AdaptyUIFlowView view, AdaptyError error) |
| Called when the restore purchases process fails. | |
| void | FlowViewDidReceiveError (AdaptyUIFlowView view, AdaptyError error) |
| Called when the flow view receives an error (including rendering failures). | |
| void | FlowViewDidFailLoadingProducts (AdaptyUIFlowView view, AdaptyError error) |
| Called when the flow view fails to load products. | |
| void | FlowViewDidFinishWebPaymentNavigation (AdaptyUIFlowView view, AdaptyPaywallProduct product, AdaptyError error) |
| Called when web payment navigation finishes (for web-based purchases). | |
| void | FlowViewDidReceiveAnalyticEvent (AdaptyUIFlowView view, string name, IReadOnlyDictionary< string, object > parameters) |
| Called when the flow view emits a customer-facing analytics event. | |
Interface for listening to flow view events.
Implement this interface to receive notifications about flow view lifecycle, user actions, purchases, and errors. Use Adapty.SetFlowsEventsListener(IAdaptyFlowsEventsListener) to register your listener. Note that the SDK applies no default behavior to these events: a successful purchase or an error does not dismiss the view automatically — call AdaptyUIFlowView.Dismiss(Action<AdaptyError>) yourself when appropriate.
| void AdaptySDK.IAdaptyFlowsEventsListener.FlowViewDidAppear | ( | AdaptyUIFlowView | view | ) |
Called when the flow view appears on screen.
| view | The AdaptyUIFlowView that appeared. |
| void AdaptySDK.IAdaptyFlowsEventsListener.FlowViewDidDisappear | ( | AdaptyUIFlowView | view | ) |
Called when the flow view disappears from screen.
| view | The AdaptyUIFlowView that disappeared. |
| void AdaptySDK.IAdaptyFlowsEventsListener.FlowViewDidFailLoadingProducts | ( | AdaptyUIFlowView | view, |
| AdaptyError | error ) |
Called when the flow view fails to load products.
| view | The AdaptyUIFlowView that failed to load products. |
| error | The AdaptyError object describing the error. |
| void AdaptySDK.IAdaptyFlowsEventsListener.FlowViewDidFailPurchase | ( | AdaptyUIFlowView | view, |
| AdaptyPaywallProduct | product, | ||
| AdaptyError | error ) |
Called when a purchase fails.
| view | The AdaptyUIFlowView where the purchase failed. |
| product | The AdaptyPaywallProduct that failed to purchase. |
| error | The AdaptyError object describing the error. |
| void AdaptySDK.IAdaptyFlowsEventsListener.FlowViewDidFailRestore | ( | AdaptyUIFlowView | view, |
| AdaptyError | error ) |
Called when the restore purchases process fails.
| view | The AdaptyUIFlowView where the restore failed. |
| error | The AdaptyError object describing the error. |
| void AdaptySDK.IAdaptyFlowsEventsListener.FlowViewDidFinishPurchase | ( | AdaptyUIFlowView | view, |
| AdaptyPaywallProduct | product, | ||
| AdaptyPurchaseResult | purchasedResult ) |
Called when a purchase is successfully completed.
The view is not dismissed automatically — call AdaptyUIFlowView.Dismiss(Action<AdaptyError>) if desired.
| view | The AdaptyUIFlowView where the purchase was completed. |
| product | The AdaptyPaywallProduct that was purchased. |
| purchasedResult | The AdaptyPurchaseResult object containing purchase details. |
| void AdaptySDK.IAdaptyFlowsEventsListener.FlowViewDidFinishRestore | ( | AdaptyUIFlowView | view, |
| AdaptyProfile | profile ) |
Called when the restore purchases process completes successfully.
| view | The AdaptyUIFlowView where the restore was completed. |
| profile | The updated AdaptyProfile object containing restored purchases. |
| void AdaptySDK.IAdaptyFlowsEventsListener.FlowViewDidFinishWebPaymentNavigation | ( | AdaptyUIFlowView | view, |
| AdaptyPaywallProduct | product, | ||
| AdaptyError | error ) |
Called when web payment navigation finishes (for web-based purchases).
| view | The AdaptyUIFlowView where the navigation occurred. |
| product | The AdaptyPaywallProduct associated with the web payment, or null. |
| error | The AdaptyError object, or null if no error occurred. |
| void AdaptySDK.IAdaptyFlowsEventsListener.FlowViewDidPerformAction | ( | AdaptyUIFlowView | view, |
| AdaptyUIUserAction | action ) |
Called when a user performs an action in the flow view (e.g., close, system back, opening a URL, custom actions).
The Android system back button is delivered here as a system_back action and does not dismiss the view automatically. To keep the default URL behavior for open_url actions, call AdaptyUI.OpenUrl(string, AdaptyWebPresentation, Action<AdaptyError>).
| view | The AdaptyUIFlowView where the action occurred. |
| action | The AdaptyUIUserAction object describing the action. |
| void AdaptySDK.IAdaptyFlowsEventsListener.FlowViewDidReceiveAnalyticEvent | ( | AdaptyUIFlowView | view, |
| string | name, | ||
| IReadOnlyDictionary< string, object > | parameters ) |
Called when the flow view emits a customer-facing analytics event.
| view | The AdaptyUIFlowView where the event occurred. |
| name | The name of the analytics event. |
| parameters | The parameters of the analytics event. |
| void AdaptySDK.IAdaptyFlowsEventsListener.FlowViewDidReceiveError | ( | AdaptyUIFlowView | view, |
| AdaptyError | error ) |
Called when the flow view receives an error (including rendering failures).
The view is not dismissed automatically — call AdaptyUIFlowView.Dismiss(Action<AdaptyError>) if desired.
| view | The AdaptyUIFlowView that received the error. |
| error | The AdaptyError object describing the error. |
| void AdaptySDK.IAdaptyFlowsEventsListener.FlowViewDidSelectProduct | ( | AdaptyUIFlowView | view, |
| string | productId ) |
Called when a user selects a product in the flow view.
| view | The AdaptyUIFlowView where the selection occurred. |
| productId | The identifier of the selected product. |
| void AdaptySDK.IAdaptyFlowsEventsListener.FlowViewDidStartPurchase | ( | AdaptyUIFlowView | view, |
| AdaptyPaywallProduct | product ) |
Called when a purchase is initiated for a product.
| view | The AdaptyUIFlowView where the purchase was initiated. |
| product | The AdaptyPaywallProduct being purchased. |
| void AdaptySDK.IAdaptyFlowsEventsListener.FlowViewDidStartRestore | ( | AdaptyUIFlowView | view | ) |
Called when the restore purchases process is initiated.
| view | The AdaptyUIFlowView where the restore was initiated. |