PaywallOptions

Options for configuring the appearance and behavior of paywalls.

Constructors

Link copied to clipboard
constructor()
constructor(definition: PaywallOptions.() -> Unit)

Types

Link copied to clipboard

Defines the messaging of the alert presented to the user when restoring a transaction fails.

Link copied to clipboard

Defines the different types of views that can appear behind Apple's payment sheet during a transaction.

Properties

Link copied to clipboard

Automatically dismisses the paywall when a product is purchased or restored. Defaults to true.

Link copied to clipboard

Determines whether the paywall should use haptic feedback. Defaults to true.

Link copied to clipboard

This will be invoked when reroute_back_button is enabled in Paywall settings. You can use this to react to back button presses with custom logic. Return true if the dismiss has been consumed, false if you prefer to fall back to SDK logic.

Link copied to clipboard

Hide shimmer optimistically.

Link copied to clipboard

A map of product name to product identifier that allows you to override products on all paywalls.

Link copied to clipboard

If preloading is enabled, you can control preloading per-device tier. This way you can control preloading on low-end and high-end devices granularly. Define only the tiers you want to specifically control, the rest will fall back to using the shouldPreload flag.

Link copied to clipboard

Defines the messaging of the alert presented to the user when restoring a transaction fails.

Link copied to clipboard

Pre-loads and caches trigger paywalls and products when you initialize the SDK via `Superwall/configure(apiKey:purchaseController:options:completion:)-52tke`. Defaults to true.

Link copied to clipboard

Shows an alert after a purchase fails. Defaults to true.

Link copied to clipboard

How long until a paywall timeout is invoked. If not using fallback loading, setting this will trigger a paywall timeout instead of retrying.

Link copied to clipboard

The view that appears behind Apple's payment sheet during a transaction. Defaults to .spinner.

Link copied to clipboard

Loads paywall template websites from disk, if available. Defaults to true.