AdaptyUiObserverModeHandler
If you use Adapty in Observer mode, implement this interface to handle purchases on your own.
Functions
Link copied to clipboard
abstract fun onPurchaseInitiated(product: AdaptyPaywallProduct, paywall: AdaptyPaywall, context: Context, onStartPurchase: AdaptyUiObserverModeHandler.PurchaseStartCallback, onFinishPurchase: AdaptyUiObserverModeHandler.PurchaseFinishCallback)
This callback is invoked when the user initiates a purchase. You can trigger your custom purchase flow in response to this callback, read more.