Stay organized with collections
Save and categorize content based on your preferences.
IsoCountryCode
class 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
enum val PART1_ALPHA2 : Locale.IsoCountryCode
PART1_ALPHA2 is used to represent the ISO3166-1 alpha-2 two letter country codes.
PART1_ALPHA3
enum val PART1_ALPHA3 : Locale.IsoCountryCode
PART1_ALPHA3 is used to represent the ISO3166-1 alpha-3 three letter country codes.
PART3
enum val PART3 : Locale.IsoCountryCode
PART3 is used to represent the ISO3166-3 four letter country codes.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# Locale.IsoCountryCode\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nIsoCountryCode\n==============\n\n```\nclass IsoCountryCode\n```\n\n|---|---|--------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\\\u003c[java.util.Locale.IsoCountryCode](#)\\\u003e ||\n| | ↳ | [java.util.Locale.IsoCountryCode](#) |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [Locale.IsoCountryCode.PART1_ALPHA2](#ENUM_VALUE:PART1_ALPHA2), [Locale.IsoCountryCode.PART1_ALPHA3](#ENUM_VALUE:PART1_ALPHA3), [Locale.IsoCountryCode.PART3](#ENUM_VALUE:PART3) |----------------------------------------------------------------|-------------------------------------------------------------------------------------| | [Locale.IsoCountryCode.PART1_ALPHA2](#ENUM_VALUE:PART1_ALPHA2) | PART1_ALPHA2 is used to represent the ISO3166-1 alpha-2 two letter country codes. | | [Locale.IsoCountryCode.PART1_ALPHA3](#ENUM_VALUE:PART1_ALPHA3) | PART1_ALPHA3 is used to represent the ISO3166-1 alpha-3 three letter country codes. | | [Locale.IsoCountryCode.PART3](#ENUM_VALUE:PART3) | PART3 is used to represent the ISO3166-3 four letter country codes. | |\n\nEnum 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.\n\nSummary\n-------\n\n| Enum values ||\n|------------------------------------------------------------------------------------------------------------------------------|---|\n| [PART1_ALPHA2](#ENUM_VALUE:PART1_ALPHA2) PART1_ALPHA2 is used to represent the ISO3166-1 alpha-2 two letter country codes. |\n| [PART1_ALPHA3](#ENUM_VALUE:PART1_ALPHA3) PART1_ALPHA3 is used to represent the ISO3166-1 alpha-3 three letter country codes. |\n| [PART3](#ENUM_VALUE:PART3) PART3 is used to represent the ISO3166-3 four letter country codes. |\n\nEnum values\n-----------\n\n### PART1_ALPHA2\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val PART1_ALPHA2 : Locale.IsoCountryCode\n```\n\nPART1_ALPHA2 is used to represent the ISO3166-1 alpha-2 two letter country codes. \n\n### PART1_ALPHA3\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val PART1_ALPHA3 : Locale.IsoCountryCode\n```\n\nPART1_ALPHA3 is used to represent the ISO3166-1 alpha-3 three letter country codes. \n\n### PART3\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val PART3 : Locale.IsoCountryCode\n```\n\nPART3 is used to represent the ISO3166-3 four letter country codes."]]