Android, Kotlin, Network, Broadcast Receiver.
handleIntent(intent: Intent, context: Context) { with(context) { when (intent.action) { LocationManager.PROVIDERS_CHANGED_ACTION -> { _connectivityResult.update { it.copy(hasGps = isGpsEnabled()) } } android.net.ConnectivityManager.CONNECTIVITY_ACTION -> { _connectivityResult.update {