Superwall
Constructors
Properties
A property that indicates current configuration state of the SDK.
Exposes customer info as a stateflow.
The delegate that handles Superwall lifecycle events.
The externalAccountId for the current user. Provided to Google Play billing upon purchase as a SHA256 of the userId. If passIdentifiersToPlayStore option is provided, this will be the userId.
Gets the current integration identifiers as a map.
Indicates whether the user is logged in to Superwall.
Determines whether a paywall is being presented.
The PaywallInfo object of the most recently presented view.
A convenience variable to access and change the paywall options that you passed to configure.
A map of product name to product identifier that allows you to override products on all paywalls.
The presented paywall view.
A flow emitting all Superwall placements as an alternative to delegate.
Properties stored about the user, set using setUserAttributes.
Functions
Removes all of Superwall's pending local notifications.
Confirms all experiment assignments and returns them in an array.
Properties stored about the device session, set internally by Superwall
Dismisses the presented paywall, if it exists, in order to present a different one.
Dismisses the presented paywall synchronously, if one exists. Warning: This blocks the calling thread.
Dismisses the presented paywall synchronously, if it exists, in order to present a different one. Warning: This blocks the calling thread.
Gets an array of all confirmed experiment assignments.
Gets the current CustomerInfo synchronously.
Gets the Java delegate that handles Superwall lifecycle events.
Gets a paywall to present synchronously, providing updates on the lifecycle of the paywall through a callback. Warning: This blocks the calling thread until the paywall is returned.
Preemptively gets the result of registering an event.
Synchronously preemptively gets the result of registering an event.
Given a list of product identifiers, returns a map of identifiers to StoreProduct objects.
Handles a deep link sent to your app to open a preview of your paywall.
Observe purchases made without using Paywalls.
Convenience method to observe purchase errors.
Convenience method to observe successful purchases.
Convenience method to observe when a purchase flow begins.
Preloads all paywalls that the user may see based on campaigns and triggers turned on in your Superwall dashboard.
Preloads paywalls for specific event names.
Initiates a purchase of ProductDetails.
Initiates a purchase of StoreProduct.
Initiates a purchase of a product with the given productId.
Initiates a purchase of a StoreProduct with a callback.
Forces a configuration refresh. Used only for hot reload or explicit testing/debugging cases. Do not use unless explicitly instructed by Superwall dev team.
Restores purchases
Restores purchases and returns the result in a callback.
Sets 3rd party integration identifiers for this user. The identifiers will be passed to Superwall backend.
Sets the user interface style, which overrides the system setting. Set to null to revert back to using the system setting.
Sets the Java delegate that handles Superwall lifecycle events.
Do not use this function, this is for internal use only.
Sets the entitlement status and updates the corresponding entitlement collections.
Simplified version of Superwall.setSubscriptionStatus that allows you to set the entitlements by passing in an array of strings. An empty list is treated as SubscriptionStatus.Inactive. Example: setSubscriptionStatus("default", "pro") equals SubscriptionStatus.Active(setOf(Entitlement("default"), Entitlement("pro"))) setSubscriptionStatus() equals SubscriptionStatus.Inactive
Shows an alert with provided properties over the paywall UI. Will only show if the current paywall exists/is presented.
Toggles the paywall loading spinner on and off.