Android, Kotlin, Network, Broadcast Receiver.
it.copy(hasNetwork = isConnectedOrConnecting()) } } } } } companion object { private val connectivityIntentFilter: IntentFilter get() { val filter = IntentFilter() filter.addAction(android.net.ConnectivityManager.CONNECTIVITY_ACTION) filter.addAction(LocationManager.PROVIDERS_CHANGED_ACTION) return