Former President Barack Obama on Saturday indirectly criticized President Trump in a speech delivered in Indonesia for withdrawing “American leadership” on climate change by abandoning the Paris accord.

“In Paris, we came together around the most ambitious agreement in history about climate change, an agreement that even with the temporary absence of American leadership can still give our children a fighting chance,” Mr. Obama said at the Fourth Congress of Indonesian Diaspora in Jakarta, the capital, according to The Associated Press.

Speaking at the end of a 10-day tour of the Southeast Asian country where he spent part of his childhood, Mr. Obama drew a sharp contrast to Mr. Trump’s “America first” philosophy, without mentioning his successor by name. He called for nations to come together to confront global challenges like terrorism and climate change, and he cautioned against “an aggressive kind of nationalism” creeping into politics.

“The challenges of our times, whether it’s economic inequality, changing climate, terrorism, mass migration — these are real challenges, and we’re going to have to confront them together,” he said.