activeFlow

fun Lifecycle.activeFlow(): StateFlow<Boolean>

Returns StateFlow of booleans that indicates if Lifecycle is active. Lifecycle is considered active when it is STARTED or RESUMED.