PaywallActivityLaunchOptions

Configuration options for launching a paywall activity unconditionally.

Use the Builder to create an instance of this class:

val options = PaywallActivityLaunchOptions.Builder()
.setOffering(offering)
.setCustomVariables(mapOf("user_name" to CustomVariableValue.String("John")))
.setShouldDisplayDismissButton(true)
.build()

launcher.launchWithOptions(options)

For conditional launches (showing the paywall only when certain conditions are met), use PaywallActivityLaunchIfNeededOptions instead.

Types

Link copied to clipboard
class Builder

Builder for creating PaywallActivityLaunchOptions.