Companion

object Companion

Functions

Link copied to clipboard
fun toCountryCodeAlpha2(context: Context, alpha3CountryCode: String): String?

Convert from an ISO 3166 Alpha-3 country code to an ISO 3166 Alpha-2 country code. For example "USA" -> "US"

Link copied to clipboard
fun toCountryCodeAlpha3(context: Context, alpha2CountryCode: String): String?

Convert from an ISO 3166 Alpha-2 country code to an ISO 3166 Alpha-3 country code. For example "US" -> "USA"