Country
data class Country(val countryName: String, val countryCode: String, val internationalDialCode: String, val flagImageResource: DrawableResource)
Data class representing a country in the country picker.
This class encapsulates the details of a country, including the country name, country code, international dial code, and a reference to the flag image resource.
Constructors
Properties
Link copied to clipboard
The country code, which is a short string representing the country (e.g., "US", "IN").
Link copied to clipboard
The name of the country.
Link copied to clipboard
The drawable resource representing the country's flag image.
Link copied to clipboard
The international dial code for the country.
Functions
Link copied to clipboard
fun getLocalizedCountryName(country: Country, localeLanguageTag: String = getLocaleLanguageTag()): String
Retrieves the localized country name based on the provided locale language tag.