SharedFlowSubject

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

Parameters

T

the type of value to expect.

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 ObservationUninitialized to handle value being observed