Code example for NetworkInfo

Methods: getType, isConnected, toString