PaywallCacheContext

Dependencies available to PaywallCacheState.Actions.

PaywallViewCache implements this directly — actions receive this as their context, with no intermediate object.

Inheritors

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val appCtx: Context
Link copied to clipboard
open val ctx: Context
Link copied to clipboard
Link copied to clipboard
abstract val scope: CoroutineScope
Link copied to clipboard
open override val state: StateFlow<PaywallCacheState>

Delegate state reads to the actor.

Link copied to clipboard
abstract val viewStorage: ViewStorage

Functions

Link copied to clipboard

Fire-and-forget dispatch of a sub-action on this context's actor.

Link copied to clipboard
open suspend fun immediate(action: TypedAction<PaywallCacheContext>)
Link copied to clipboard
Link copied to clipboard
open fun sideEffect(what: suspend () -> Unit)
Link copied to clipboard
open override fun update(reducer: Reducer<PaywallCacheState>)

Apply a state reducer inline.