asActiveFlow

fun Lifecycle.asActiveFlow(activeState: Lifecycle.State = Lifecycle.State.RESUMED): Flow<Boolean>