AppDNAPaywallDelegate class abstract
13 paywall lifecycle methods incl. purchase, restore lifecycle (started/completed/failed), post-purchase deep-link/next-step.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onPaywallAction(
String paywallId, String action) → void -
onPaywallDismissed(
String paywallId) → void -
onPaywallPresented(
String paywallId) → void -
onPaywallPurchaseCompleted(
String paywallId, String productId, Map< String, dynamic> transaction) → void -
onPaywallPurchaseFailed(
String paywallId, Object error, String errorType, String? productId) → void -
A wrapper host cannot introspect
error: it crosses the bridge as an opaque platform object, so a JS or Dart host could not tell a user cancel from a declined card from a dead network — and so could not decide whether a retry was even sensible.errorTypeis the stable discriminator (userCancelled | productNotFound | verificationFailed | networkError | serverError | pending | providerNotAvailable | unknown).productIdis null only when no product was ever selected — a paywall selling two plans must say WHICH one failed. -
onPaywallPurchaseStarted(
String paywallId, String productId) → void -
onPaywallRestoreCompleted(
String paywallId, List< String> restoredProductIds) → void -
onPaywallRestoreFailed(
String paywallId, Object error) → void -
onPaywallRestoreStarted(
String paywallId) → void -
onPostPurchaseDeepLink(
String paywallId, String url) → void - Post-purchase: the SDK asks the host to open a deep-link URL.
-
onPostPurchaseNextStep(
String paywallId) → void - Post-purchase: the SDK asks the host to continue to the next onboarding step.
-
onPromoCodeSubmit(
String paywallId, String code) → Future< bool> - Validate a user-entered promo code. Return true to accept, false to reject. Routed via sync_callbacks; defaults to reject on no-delegate/timeout.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited