Object CountryUtils
-
- All Implemented Interfaces:
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) public class CountryUtils
-
-
Field Summary
Fields Modifier and Type Field Description public final static CountryUtilsINSTANCE
-
Method Summary
Modifier and Type Method Description final static List<CountryInfo>getCountries(List<String> allowedISOCodes)Returns the list of supported countries to display. final static StringgetCountryName(String isoCode, Locale locale)Returns the localized display name of a country -
-
Method Detail
-
getCountries
final static List<CountryInfo> getCountries(List<String> allowedISOCodes)
Returns the list of supported countries to display.
- Parameters:
allowedISOCodes- the list of ISO codes to filter the countries with.- Returns:
the list of countries.
-
getCountryName
final static String getCountryName(String isoCode, Locale locale)
Returns the localized display name of a country
- Parameters:
isoCode- the ISO code of the country.locale- the locale in which the country name should be localized.- Returns:
the localized country name.
-
-
-
-