# Locale.IsoCountryCode

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# IsoCountryCode

```
class IsoCountryCode
```

|---|---|--------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                        |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\<[java.util.Locale.IsoCountryCode](https://developer.android.com/reference/kotlin/java/util/Locale.IsoCountryCode#)\> ||
|   | ↳ | [java.util.Locale.IsoCountryCode](https://developer.android.com/reference/kotlin/java/util/Locale.IsoCountryCode#) |

|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [Locale.IsoCountryCode.PART1_ALPHA2](https://developer.android.com/reference/kotlin/java/util/Locale.IsoCountryCode#ENUM_VALUE:PART1_ALPHA2),[Locale.IsoCountryCode.PART1_ALPHA3](https://developer.android.com/reference/kotlin/java/util/Locale.IsoCountryCode#ENUM_VALUE:PART1_ALPHA3),[Locale.IsoCountryCode.PART3](https://developer.android.com/reference/kotlin/java/util/Locale.IsoCountryCode#ENUM_VALUE:PART3) |----------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------| | [Locale.IsoCountryCode.PART1_ALPHA2](https://developer.android.com/reference/kotlin/java/util/Locale.IsoCountryCode#ENUM_VALUE:PART1_ALPHA2) | PART1_ALPHA2 is used to represent the ISO3166-1 alpha-2 two letter country codes.   | | [Locale.IsoCountryCode.PART1_ALPHA3](https://developer.android.com/reference/kotlin/java/util/Locale.IsoCountryCode#ENUM_VALUE:PART1_ALPHA3) | PART1_ALPHA3 is used to represent the ISO3166-1 alpha-3 three letter country codes. | | [Locale.IsoCountryCode.PART3](https://developer.android.com/reference/kotlin/java/util/Locale.IsoCountryCode#ENUM_VALUE:PART3)               | PART3 is used to represent the ISO3166-3 four letter country codes.                 | |

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](https://developer.android.com/reference/kotlin/java/util/Locale.IsoCountryCode#ENUM_VALUE:PART1_ALPHA2) PART1_ALPHA2 is used to represent the ISO3166-1 alpha-2 two letter country codes.   |
| [PART1_ALPHA3](https://developer.android.com/reference/kotlin/java/util/Locale.IsoCountryCode#ENUM_VALUE:PART1_ALPHA3) PART1_ALPHA3 is used to represent the ISO3166-1 alpha-3 three letter country codes. |
| [PART3](https://developer.android.com/reference/kotlin/java/util/Locale.IsoCountryCode#ENUM_VALUE:PART3) PART3 is used to represent the ISO3166-3 four letter country codes.                               |

## Enum values

### PART1_ALPHA2

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val PART3 : Locale.IsoCountryCode
```

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