Added in API level 34

IsoCountryCode

class IsoCountryCode
kotlin.Any
   ↳ kotlin.Enum<java.util.Locale.IsoCountryCode>
   ↳ java.util.Locale.IsoCountryCode

Enum for specifying the type defined in ISO 3166. This enum is used to retrieve the two-letter ISO3166-1 alpha-2, three-letter ISO3166-1 alpha-3, four-letter ISO3166-3 country codes.

Summary

Enum values

PART1_ALPHA2 is used to represent the ISO3166-1 alpha-2 two letter country codes.

PART1_ALPHA3 is used to represent the ISO3166-1 alpha-3 three letter country codes.

PART3 is used to represent the ISO3166-3 four letter country codes.

Enum values

PART1_ALPHA2

Added in API level 34
enum val PART1_ALPHA2 : Locale.IsoCountryCode

PART1_ALPHA2 is used to represent the ISO3166-1 alpha-2 two letter country codes.

PART1_ALPHA3

Added in API level 34
enum val PART1_ALPHA3 : Locale.IsoCountryCode

PART1_ALPHA3 is used to represent the ISO3166-1 alpha-3 three letter country codes.

PART3

Added in API level 34
enum val PART3 : Locale.IsoCountryCode

PART3 is used to represent the ISO3166-3 four letter country codes.