on Connectivity Changed
This method will be called whenever the host device's network connectivity state changes.
Parameters
connected
true if the host is currently connected to the network.
network Info
detailed information about the current network connection.