TestModeSessionData

data class TestModeSessionData(val products: List<SuperwallProduct> = emptyList(), val testProductsByFullId: Map<String, StoreProduct> = emptyMap(), val entitlementIds: Set<String> = emptySet(), val entitlementSelections: List<EntitlementSelection> = emptyList(), val freeTrialOverride: FreeTrialOverride = FreeTrialOverride.UseDefault, val overriddenSubscriptionStatus: SubscriptionStatus? = null, val productsLoaded: CompletableDeferred<Unit> = CompletableDeferred())(source)

Per-activation working set. Immutable — every mutation produces a copy.

Constructors

Link copied to clipboard
constructor(products: List<SuperwallProduct> = emptyList(), testProductsByFullId: Map<String, StoreProduct> = emptyMap(), entitlementIds: Set<String> = emptySet(), entitlementSelections: List<EntitlementSelection> = emptyList(), freeTrialOverride: FreeTrialOverride = FreeTrialOverride.UseDefault, overriddenSubscriptionStatus: SubscriptionStatus? = null, productsLoaded: CompletableDeferred<Unit> = CompletableDeferred())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val productsLoaded: CompletableDeferred<Unit>

Completed once the product catalog refresh finishes (success or failure). Carried through copy().

Link copied to clipboard