Code example for NetworkInfo

Methods: getTypeName, isConnected