combineAsStateFlow

fun <T1, T2, R> combineAsStateFlow(flow1: StateFlow<T1>, flow2: StateFlow<T2>, transform: (T1, T2) -> R): StateFlow<R>

Combines two StateFlows into another, instead of loosening the result to a Flow.


fun <T1, T2, T3, R> combineAsStateFlow(flow1: StateFlow<T1>, flow2: StateFlow<T2>, flow3: StateFlow<T3>, transform: (T1, T2, T3) -> R): StateFlow<R>

Combines three StateFlows into another, instead of loosening the result to a Flow.


fun <T1, T2, T3, T4, R> combineAsStateFlow(flow1: StateFlow<T1>, flow2: StateFlow<T2>, flow3: StateFlow<T3>, flow4: StateFlow<T4>, transform: (T1, T2, T3, T4) -> R): StateFlow<R>

Combines four StateFlows into another, instead of loosening the result to a Flow.


fun <T1, T2, T3, T4, T5, R> combineAsStateFlow(flow1: StateFlow<T1>, flow2: StateFlow<T2>, flow3: StateFlow<T3>, flow4: StateFlow<T4>, flow5: StateFlow<T5>, transform: (T1, T2, T3, T4, T5) -> R): StateFlow<R>

Combines five StateFlows into another, instead of loosening the result to a Flow.


fun <T1, T2, T3, T4, T5, T6, R> combineAsStateFlow(flow1: StateFlow<T1>, flow2: StateFlow<T2>, flow3: StateFlow<T3>, flow4: StateFlow<T4>, flow5: StateFlow<T5>, flow6: StateFlow<T6>, transform: (T1, T2, T3, T4, T5, T6) -> R): StateFlow<R>

Combines six StateFlows into another, instead of loosening the result to a Flow.


inline fun <T, R> combineAsStateFlow(flows: List<StateFlow<T>>, crossinline transform: (List<T>) -> R): StateFlow<R>

Combines a list of StateFlows into another, instead of loosening the result to a Flow.