CustomVariableValue
A value type for custom paywall variables that can be passed to paywalls at runtime.
Custom variables allow developers to personalize paywall text with dynamic values. Variables are defined in the RevenueCat dashboard and can be overridden at runtime.
Usage
PaywallOptions.Builder { /* dismiss */}
.setCustomVariables(mapOf(
"player_name" to CustomVariableValue.String("John"),
"level" to CustomVariableValue.String("42"),
))
.build()Content copied to clipboard
In the paywall text (configured in the dashboard), use the custom. prefix:
Hello {{ custom.player_name }}!Content copied to clipboard