Config Manager
open class ConfigManager(val context: Context, val storeManager: StoreManager, val entitlements: Entitlements, val storage: Storage, val network: SuperwallAPI, val deviceHelper: DeviceHelper, var options: SuperwallOptions, val paywallManager: PaywallManager, val webPaywallRedeemer: () -> WebPaywallRedeemer, val factory: ConfigManager.Factory, val assignments: Assignments, val paywallPreload: PaywallPreload, ioScope: IOScope, val tracker: suspend (TrackableSuperwallEvent) -> Unit, val testMode: TestMode? = null, val identityManager: () -> IdentityManager? = null, val setSubscriptionStatus: (SubscriptionStatus) -> Unit? = null, val awaitUtilNetwork: suspend () -> Unit = {
context.awaitUntilNetworkExists()
}, val activateTestMode: suspend (Config, Boolean) -> Unit = { _, _ -> }, val actor: StateActor<ConfigContext, ConfigState>) : ConfigContext(source)
Constructors
Link copied to clipboard
constructor(context: Context, storeManager: StoreManager, entitlements: Entitlements, storage: Storage, network: SuperwallAPI, deviceHelper: DeviceHelper, options: SuperwallOptions, paywallManager: PaywallManager, webPaywallRedeemer: () -> WebPaywallRedeemer, factory: ConfigManager.Factory, assignments: Assignments, paywallPreload: PaywallPreload, ioScope: IOScope, tracker: suspend (TrackableSuperwallEvent) -> Unit, testMode: TestMode? = null, identityManager: () -> IdentityManager? = null, setSubscriptionStatus: (SubscriptionStatus) -> Unit? = null, awaitUtilNetwork: suspend () -> Unit = {
context.awaitUntilNetworkExists()
}, activateTestMode: suspend (Config, Boolean) -> Unit = { _, _ -> }, actor: StateActor<ConfigContext, ConfigState>)
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Delegate state reads to the actor.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Fire-and-forget dispatch of a sub-action on this context's actor.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend fun immediateUntil(action: TypedAction<ConfigContext>, until: (ConfigState) -> Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Re-runs preload if any DeviceHelper field referenced by IF_TRUE rules has changed since the last preload. Cheap no-op when (a) config has no IF_TRUE rule or (b) the fingerprint matches the last dispatched preload.
Link copied to clipboard
suspend fun reevaluateTestMode(config: Config? = null, appUserId: String? = null, aliasId: String? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Apply a state reducer inline.