AdaptyUiObserverModeHandler
interface AdaptyUiObserverModeHandler
If you use Adapty in Observer mode, implement this interface to handle purchases and restores on your own.
Types
Functions
Link copied to clipboard
Override to provide custom restore handling. Return null (default) to use SDK's default restore behavior.
Link copied to clipboard
abstract fun onPurchaseInitiated(product: AdaptyPaywallProduct, 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.