SuperwallDelegate class abstract
The delegate protocol that handles Superwall lifecycle events.
The delegate methods receive callbacks from the SDK in response to certain placements.
You set this directly using Superwall/delegate
.
To learn how to conform to the delegate in your app and best practices, see our docs.
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
-
didDismissPaywall(
PaywallInfo paywallInfo) → void - Called right after the paywall is dismissed.
-
didPresentPaywall(
PaywallInfo paywallInfo) → void - Called right after the paywall is presented.
-
didRedeemLink(
RedemptionResult result) → void - A code was redeemed from a web paywall.
-
handleCustomPaywallAction(
String name) → void - Called when the user taps an element on your paywall with a custom action.
-
handleLog(
String level, String scope, String? message, Map? info, String? error) → void - Receive all log messages generated by the SDK.
-
handleSuperwallDeepLink(
Uri fullURL, List< String> pathComponents, Map<String, String> queryParameters) → void -
Called after handling a Superwall deep link with the format
yoursubdomain.superwall.app/app-link/...
. -
handleSuperwallEvent(
SuperwallEventInfo eventInfo) → void - Called whenever an internal analytics placement is tracked.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paywallWillOpenDeepLink(
Uri url) → void - Called when the user taps a deep link in your paywall.
-
paywallWillOpenURL(
Uri url) → void - Called when the user opens a URL with a specific tag on your paywall.
-
subscriptionStatusDidChange(
SubscriptionStatus newValue) → void -
Called when the property
subscriptionStatus
ofSuperwall
changes. -
toString(
) → String -
A string representation of this object.
inherited
-
willDismissPaywall(
PaywallInfo paywallInfo) → void - Called right before the paywall is dismissed.
-
willPresentPaywall(
PaywallInfo paywallInfo) → void - Called right before the paywall is presented.
-
willRedeemLink(
) → void - Called before the redemption of a code from a web paywall.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited