Android, Kotlin, Network, Broadcast Receiver.
activity.registerReceiver( receiver, connectivityIntentFilter ) } and on release we will unbind the receiver override fun release(activity: ComponentActivity) { receiver.abortBroadcast activity.unregisterReceiver(receiver) } And with this we have the completed code class ConnectivityClientImpl :