CustomerCenterConfiguration

data class CustomerCenterConfiguration @JvmOverloads constructor(val managementScreen: CustomerCenterConfiguration.Screen, val noPurchasesScreen: CustomerCenterConfiguration.Screen, val support: CustomerCenterConfiguration.Support = Support(), val appearance: CustomerCenterConfiguration.Appearance = Appearance(), val showsAccountDetails: Boolean = true, val warnsAboutDuplicateSubscriptions: Boolean = true)(source)

Configures the screens, actions, support options and appearance of the Customer Center.

Set the default via com.superwall.sdk.config.options.SuperwallOptions.customerCenter before calling configure, or pass one to com.superwall.sdk.Superwall.presentCustomerCenter.

Constructors

Link copied to clipboard
constructor(managementScreen: CustomerCenterConfiguration.Screen, noPurchasesScreen: CustomerCenterConfiguration.Screen, support: CustomerCenterConfiguration.Support = Support(), appearance: CustomerCenterConfiguration.Appearance = Appearance(), showsAccountDetails: Boolean = true, warnsAboutDuplicateSubscriptions: Boolean = true)

Types

Link copied to clipboard
data class Appearance @JvmOverloads constructor(val accent: CustomerCenterConfiguration.Appearance.ColorPair? = null)

Colour overrides for the Customer Center.

Link copied to clipboard
object Companion
Link copied to clipboard
data class FeedbackSurvey @JvmOverloads constructor(val id: String, val title: String? = null, val options: List<CustomerCenterConfiguration.FeedbackSurvey.Option>)

A single-choice survey shown before a path's action runs.

Link copied to clipboard
Link copied to clipboard
data class Path @JvmOverloads constructor(val type: CustomerCenterConfiguration.PathType, val title: String? = null, val survey: CustomerCenterConfiguration.FeedbackSurvey? = null, val id: String = type.defaultId)

An action row in the Customer Center.

Link copied to clipboard
sealed class PathType

The kinds of path the Customer Center supports.

Link copied to clipboard
data class Screen @JvmOverloads constructor(val title: String? = null, val subtitle: String? = null, val paths: List<CustomerCenterConfiguration.Path>)

A Customer Center screen: a title, optional subtitle and an ordered list of paths.

Link copied to clipboard
data class Support @JvmOverloads constructor(val email: String? = null, val latestAppVersion: String? = null, val warnsAboutUpdates: Boolean = true, val webManagementUrl: String? = null)

Properties

Link copied to clipboard

Optional color overrides. null values use the default theme colors.

Link copied to clipboard

The screen shown when the user has at least one subscription (active or expired) or purchase.

Link copied to clipboard

The screen shown when the user has no purchases at all.

Link copied to clipboard

Shows the account details section (user ID, original download date). Defaults to true.

Link copied to clipboard

Support-related settings (email, app update warning, web management URL).

Link copied to clipboard

Warns when both a Google Play and a web subscription are active. Defaults to true.