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()

In the paywall text (configured in the dashboard), use the custom. prefix:

Hello {{ custom.player_name }}!

Inheritors

Types

Link copied to clipboard

A string value.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard

The string representation of this value for use in paywall text replacement.