ReactiveStateContext

data class ReactiveStateContext(val scope: CoroutineScope, resolver: DIResolver) : DIResolver

Contains all values which are part of the ViewModel build process.

Constructors

Link copied to clipboard
constructor(scope: CoroutineScope, resolver: DIResolver)

Properties

Link copied to clipboard
open override val autoRunner: BaseAutoRunner
Link copied to clipboard
open override val DI: DIImpl
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val scope: CoroutineScope

Functions

Link copied to clipboard

fun <T> Resolver.get(data: WhileUsed<T>): T

Returns WhileUsed's value and keeps it alive as long as it's still used.

fun <T> Resolver.get(data: StateFlow<T>): T

Returns StateFlow.value and tracks the observable (on the MainScope).

Link copied to clipboard
Link copied to clipboard
open override fun <S : Any, T : AutoRunnerObservable<V>, V> track(underlyingObservable: S, getObservable: () -> T): FrozenAutoRunnerObservable<V, T>