Android, Kotlin, Network, Broadcast Receiver.
MutableStateFlow(Connectivity()) override val connectivityResult: Flow<Connectivity> = _connectivityResult private val receiver = object : BroadcastReceiver() { override fun onReceive(context: Context?, intent: Intent?) { intent?.let { int -> context?.let { ctx -> handleIntent(int, ctx) } } } }