|
AdaptySDK 4.1.1
|
Interface for resolving purchases and restores initiated by a flow while the SDK runs in Observer mode. More...
Public Member Functions | |
| void | FlowViewDidInitiatePurchase (AdaptyUIFlowView view, AdaptyPaywallProduct product, Action onStartPurchase, Action onFinishPurchase) |
| Called when a user initiates a purchase in a flow view while the SDK runs in Observer mode. | |
| void | FlowViewDidInitiateRestore (AdaptyUIFlowView view, Action onStartRestore, Action onFinishRestore) |
| Called when a user initiates a restore in a flow view while the SDK runs in Observer mode. | |
Interface for resolving purchases and restores initiated by a flow while the SDK runs in Observer mode.
Use Adapty.SetObserverModeResolver(IAdaptyUIObserverModeResolver) to register your resolver. Read more at Adapty Documentation
| void AdaptySDK.IAdaptyUIObserverModeResolver.FlowViewDidInitiatePurchase | ( | AdaptyUIFlowView | view, |
| AdaptyPaywallProduct | product, | ||
| Action | onStartPurchase, | ||
| Action | onFinishPurchase ) |
Called when a user initiates a purchase in a flow view while the SDK runs in Observer mode.
Perform the purchase with your own billing implementation. Invoke onStartPurchase when your purchase flow starts and onFinishPurchase when it finishes (successfully or not). Both are safe to invoke from any thread - the SDK sends the report from the Unity main thread.
| view | The AdaptyUIFlowView where the purchase was initiated. |
| product | The AdaptyPaywallProduct being purchased. |
| onStartPurchase | Invoke when your purchase flow starts. |
| onFinishPurchase | Invoke when your purchase flow finishes. |
| void AdaptySDK.IAdaptyUIObserverModeResolver.FlowViewDidInitiateRestore | ( | AdaptyUIFlowView | view, |
| Action | onStartRestore, | ||
| Action | onFinishRestore ) |
Called when a user initiates a restore in a flow view while the SDK runs in Observer mode.
Perform the restore with your own billing implementation. Invoke onStartRestore when your restore flow starts and onFinishRestore when it finishes (successfully or not). Both are safe to invoke from any thread - the SDK sends the report from the Unity main thread.
| view | The AdaptyUIFlowView where the restore was initiated. |
| onStartRestore | Invoke when your restore flow starts. |
| onFinishRestore | Invoke when your restore flow finishes. |