TestModeState

sealed class TestModeState(source)

Inheritors

Types

Link copied to clipboard
data class Active(val reason: TestModeReason, val session: TestModeState.TestModeSessionData = TestModeSessionData()) : TestModeState
Link copied to clipboard
data object Inactive : TestModeState
Link copied to clipboard
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())

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

Properties

Link copied to clipboard