AdaptySDK 4.1.1
Loading...
Searching...
No Matches
AdaptySDK.IAdaptyUIObserverModeResolver Interface Reference

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.

Detailed Description

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

Member Function Documentation

◆ FlowViewDidInitiatePurchase()

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.

Parameters
viewThe AdaptyUIFlowView where the purchase was initiated.
productThe AdaptyPaywallProduct being purchased.
onStartPurchaseInvoke when your purchase flow starts.
onFinishPurchaseInvoke when your purchase flow finishes.

◆ FlowViewDidInitiateRestore()

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.

Parameters
viewThe AdaptyUIFlowView where the restore was initiated.
onStartRestoreInvoke when your restore flow starts.
onFinishRestoreInvoke when your restore flow finishes.

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