Android, Kotlin, Network, Broadcast Receiver.
override fun bind(activity: ComponentActivity) { } override fun release(activity: ComponentActivity) { } } Connectivity result will be the flow we observe in order to listen for any changes. Now for the mechanism of listening to any changes we will create a BroadcastReceiver. BroadcastReceivers are