-
public interface AppDNAPaywallDelegateDelegate for paywall lifecycle events.
SPEC-070-A C.2 / C.4 — 12-method parity with iOS
AppDNAPaywallDelegate(AppDNA+Delegates.swift): addsonPaywallRestoreStarted/onPaywallRestoreCompleted/onPaywallRestoreFailed(restore lifecycle) plusonPostPurchaseDeepLink/onPostPurchaseNextStep(post-purchase dispatch hooks consumed by PaywallManager.handlePostPurchaseSuccess).
-
-
Method Summary
Modifier and Type Method Description UnitonPaywallPresented(String paywallId)UnitonPaywallAction(String paywallId, PaywallAction action)UnitonPaywallPurchaseStarted(String paywallId, String productId)UnitonPaywallPurchaseCompleted(String paywallId, String productId, TransactionInfo transaction)UnitonPaywallPurchaseFailed(String paywallId, Throwable error)UnitonPaywallDismissed(String paywallId)UnitonPromoCodeSubmit(String paywallId, String code, Function1<Boolean, Unit> completion)UnitonPaywallRestoreStarted(String paywallId)UnitonPaywallRestoreCompleted(String paywallId, List<String> productIds)UnitonPaywallRestoreFailed(String paywallId, Throwable error)UnitonPostPurchaseDeepLink(String paywallId, String url)Fired after a successful purchase when post_purchase.on_success.action == "deep_link". UnitonPostPurchaseNextStep(String paywallId)Fired after a successful purchase when post_purchase.on_success.action == "next_step". -
-
Method Detail
-
onPaywallPresented
Unit onPaywallPresented(String paywallId)
-
onPaywallAction
Unit onPaywallAction(String paywallId, PaywallAction action)
-
onPaywallPurchaseStarted
Unit onPaywallPurchaseStarted(String paywallId, String productId)
-
onPaywallPurchaseCompleted
Unit onPaywallPurchaseCompleted(String paywallId, String productId, TransactionInfo transaction)
-
onPaywallPurchaseFailed
Unit onPaywallPurchaseFailed(String paywallId, Throwable error)
-
onPaywallDismissed
Unit onPaywallDismissed(String paywallId)
-
onPromoCodeSubmit
Unit onPromoCodeSubmit(String paywallId, String code, Function1<Boolean, Unit> completion)
-
onPaywallRestoreStarted
Unit onPaywallRestoreStarted(String paywallId)
-
onPaywallRestoreCompleted
Unit onPaywallRestoreCompleted(String paywallId, List<String> productIds)
-
onPaywallRestoreFailed
Unit onPaywallRestoreFailed(String paywallId, Throwable error)
-
onPostPurchaseDeepLink
Unit onPostPurchaseDeepLink(String paywallId, String url)
Fired after a successful purchase when post_purchase.on_success.action == "deep_link".
-
onPostPurchaseNextStep
Unit onPostPurchaseNextStep(String paywallId)
Fired after a successful purchase when post_purchase.on_success.action == "next_step".
-
-
-
-