CountryUtils

object CountryUtils

Functions

Link copied to clipboard
fun doesCountryUsePostalCode(countryCode: CountryCode): Boolean
fun doesCountryUsePostalCode(countryCode: String): Boolean
Link copied to clipboard
fun getCountryByCode(countryCode: CountryCode?, currentLocale: Locale): Country?
Link copied to clipboard
fun getCountryCodeByName(countryName: String, currentLocale: Locale): CountryCode?
Link copied to clipboard
fun getDisplayCountry(countryCode: CountryCode, currentLocale: Locale): String
Link copied to clipboard
fun getOrderedCountries(currentLocale: Locale): List<Country>

Show user's current locale first, followed by countries alphabetized by display name