SDK Reference
Reference for the Superwall Unity SDK beta C# API.
The Unity SDK exposes the Superwall namespace. Configure the SDK once with the static
Superwall.Configure(...) method, then use Superwall.Shared for placement registration, user
management, subscription state, and paywall utilities.
Superwall.Configure
public static Superwall Configure(
string apiKey,
SuperwallOptions options = null,
IPurchaseController purchaseController = null,
Action<ConfigurationResult> completion = null
)Prop
Type
RegisterPlacement
public void RegisterPlacement(
string placement,
Dictionary<string, object> parameters = null,
PaywallPresentationHandler handler = null,
Action feature = null
)Prop
Type
Common Methods and Properties
Prop
Type
Presentation Handler
public class PaywallPresentationHandler
{
public Action<PaywallInfo> OnPresent;
public Action<PaywallInfo, PaywallResult> OnDismiss;
public Action<string> OnError;
public Action<PaywallSkippedReason> OnSkip;
public Func<CustomCallback, CustomCallbackResult> OnCustomCallback;
}Related Guides
How is this guide?