LocalizedConfiguration

@Serializable
data class LocalizedConfiguration(val title: String, val subtitle: String? = null, val callToAction: String, val callToActionWithIntroOffer: String? = null, val callToActionWithMultipleIntroOffers: String? = null, val offerDetails: String? = null, val offerDetailsWithIntroOffer: String? = null, val offerDetailsWithMultipleIntroOffers: String? = null, val offerName: String? = null, val features: List<PaywallData.LocalizedConfiguration.Feature> = emptyList(), val tierName: String? = null, val offerOverrides: Map<String, PaywallData.LocalizedConfiguration.OfferOverride> = emptyMap())

Defines the necessary localized information for a paywall.

Constructors

Link copied to clipboard
constructor(title: String, subtitle: String? = null, callToAction: String, callToActionWithIntroOffer: String? = null, callToActionWithMultipleIntroOffers: String? = null, offerDetails: String? = null, offerDetailsWithIntroOffer: String? = null, offerDetailsWithMultipleIntroOffers: String? = null, offerName: String? = null, features: List<PaywallData.LocalizedConfiguration.Feature> = emptyList(), tierName: String? = null, offerOverrides: Map<String, PaywallData.LocalizedConfiguration.OfferOverride> = emptyMap())

Types

Link copied to clipboard
@Serializable
data class Feature(val title: String, val content: String? = null, val iconID: String? = null)

An item to be showcased in a paywall.

Link copied to clipboard
@Serializable
data class OfferOverride(val offerName: String, val offerDetails: String, val offerDetailsWithIntroOffer: String? = null, val offerDetailsWithMultipleIntroOffers: String? = null, val offerBadge: String? = null)

Properties

Link copied to clipboard

The content of the main action button for purchasing a subscription.

Link copied to clipboard

The content of the main action button for purchasing a subscription when an intro offer is available. If null, no information regarding trial eligibility will be displayed.

Link copied to clipboard

The content of the main action button for purchasing a subscription when multiple intro offer are available. This may happen in Google Play, if you have an offer with both a free trial and a discounted price. If null, no information regarding trial eligibility will be displayed.

Link copied to clipboard

An optional list of features that describe this paywall.

Link copied to clipboard
val offerDetails: String? = null

Description for the offer to be purchased.

Link copied to clipboard

Description for the offer to be purchased when an intro offer is available. If null, no information regarding trial eligibility will be displayed.

Link copied to clipboard

Description for the offer to be purchased when multiple intro offers are available. This may happen in Google Play, if you have an offer with both a free trial and a discounted price. If null, no information regarding trial eligibility will be displayed.

Link copied to clipboard
val offerName: String? = null

The name representing each of the packages, most commonly a variable.

Link copied to clipboard
val subtitle: String? = null

The subtitle of the paywall screen.

Link copied to clipboard
val tierName: String? = null
Link copied to clipboard

The title of the paywall screen.