Code example for NetworkInfo

Methods: isConnected