Using the Superwall Delegate
Use a Superwall delegate to help interface with 3rd party analytics, see which product was purchased on a paywall, handle custom events and more.
Use a Superwall’s delegate to extend our SDK’s functionality across several surface areas by assigning to the delegate
property:
Some common use cases for using the Superwall delegate include:
- Custom actions: Respond to custom tap actions from a paywall.
- Respond to purchases: See which product was purchased from the presented paywall.
- Analytics: Forward events from Superwall to your own analytics.
Below are some commonly used implementations when using the delegate.
Superwall Events
Most of what occurs in Superwall can be viewed using the delegate method to respond to events:
Paywall Custom Actions
Using the custom tap action, you can respond to any arbitrary event from a paywall:
Subscription status changes
You can be informed of subscription status changes using the delegate. If you need to set or handle the status on your own, use a purchase controller — this function is only for informational, tracking or similar purposes:
Paywall events
The delegate also has callbacks for several paywall events, such dismissing, presenting, and more. Here’s an example: