Stay organized with collections
Save and categorize content based on your preferences.
Category
class Category
Enum for locale categories. These locale categories are used to get/set the default locale for the specific functionality represented by the category.
Summary
Enum values |
Category used to represent the default locale for displaying user interfaces.
|
Category used to represent the default locale for formatting date, number and/or currency.
|
Enum values
DISPLAY
enum val DISPLAY : ULocale.Category
Category used to represent the default locale for displaying user interfaces.
enum val FORMAT : ULocale.Category
Category used to represent the default locale for formatting date, number and/or currency.
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,["# ULocale.Category\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nCategory\n========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/icu/util/ULocale.Category \"View this page in Java\") \n\n```\nclass Category\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[android.icu.util.ULocale.Category](#)\\\u003e ||\n| | ↳ | [android.icu.util.ULocale.Category](#) |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [ULocale.Category.DISPLAY](#ENUM_VALUE:DISPLAY), [ULocale.Category.FORMAT](#ENUM_VALUE:FORMAT) |-------------------------------------------------|--------------------------------------------------------------------------------------------| | [ULocale.Category.DISPLAY](#ENUM_VALUE:DISPLAY) | Category used to represent the default locale for displaying user interfaces. | | [ULocale.Category.FORMAT](#ENUM_VALUE:FORMAT) | Category used to represent the default locale for formatting date, number and/or currency. | |\n\nEnum for locale categories. These locale categories are used to get/set the default locale for the specific functionality represented by the category.\n\nSummary\n-------\n\n| Enum values ||\n|-------------------------------------------------------------------------------------------------------------------------|---|\n| [DISPLAY](#ENUM_VALUE:DISPLAY) Category used to represent the default locale for displaying user interfaces. |\n| [FORMAT](#ENUM_VALUE:FORMAT) Category used to represent the default locale for formatting date, number and/or currency. |\n\nEnum values\n-----------\n\n### DISPLAY\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val DISPLAY : ULocale.Category\n```\n\nCategory used to represent the default locale for displaying user interfaces. \n\n### FORMAT\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val FORMAT : ULocale.Category\n```\n\nCategory used to represent the default locale for formatting date, number and/or currency."]]