SharedFlowInitializedSubject

constructor(initialValue: T, coroutineScope: CoroutineScope, context: CoroutineContext = coroutineScope.coroutineContext, sharedFlow: MutableSharedFlow<T>, autoBind: Boolean = true, observation: ObservationInitialized<T> = ObservationInitialized(initialValue))

Parameters

T

the type of value to expect.

initialValue

The initial value of T

coroutineScope

The CoroutineScope on which to observe the MutableSharedFlow

context

The CoroutineContext in which to observe the MutableSharedFlow

sharedFlow

The MutableSharedFlow to match the state of.

autoBind

If true this will automatically call bind.

observation

The ObservationInitialized to handle value being observed