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 dates, numbers, and/or currencies.
|
Enum values
DISPLAY
enum val DISPLAY : Locale.Category
Category used to represent the default locale for displaying user interfaces.
enum val FORMAT : Locale.Category
Category used to represent the default locale for formatting dates, numbers, and/or currencies.
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.Category\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nCategory\n========\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[java.util.Locale.Category](#)\\\u003e ||\n| | ↳ | [java.util.Locale.Category](#) |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [Locale.Category.DISPLAY](#ENUM_VALUE:DISPLAY), [Locale.Category.FORMAT](#ENUM_VALUE:FORMAT) |------------------------------------------------|-------------------------------------------------------------------------------------------------| | [Locale.Category.DISPLAY](#ENUM_VALUE:DISPLAY) | Category used to represent the default locale for displaying user interfaces. | | [Locale.Category.FORMAT](#ENUM_VALUE:FORMAT) | Category used to represent the default locale for formatting dates, numbers, and/or currencies. | |\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 dates, numbers, and/or currencies. |\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 : Locale.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 : Locale.Category\n```\n\nCategory used to represent the default locale for formatting dates, numbers, and/or currencies."]]