# ULocale.Category

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

# Category

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/icu/util/ULocale.Category "View this page in Java")  

```
class Category
```

|---|---|------------------------------------------------------------------------------------------------------------------------|
| [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)\<[android.icu.util.ULocale.Category](https://developer.android.com/reference/kotlin/android/icu/util/ULocale.Category#)\> ||
|   | ↳ | [android.icu.util.ULocale.Category](https://developer.android.com/reference/kotlin/android/icu/util/ULocale.Category#) |

|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [ULocale.Category.DISPLAY](https://developer.android.com/reference/kotlin/android/icu/util/ULocale.Category#ENUM_VALUE:DISPLAY),[ULocale.Category.FORMAT](https://developer.android.com/reference/kotlin/android/icu/util/ULocale.Category#ENUM_VALUE:FORMAT) |---------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | [ULocale.Category.DISPLAY](https://developer.android.com/reference/kotlin/android/icu/util/ULocale.Category#ENUM_VALUE:DISPLAY) | Category used to represent the default locale for displaying user interfaces.              | | [ULocale.Category.FORMAT](https://developer.android.com/reference/kotlin/android/icu/util/ULocale.Category#ENUM_VALUE:FORMAT)   | Category used to represent the default locale for formatting date, number and/or currency. | |

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                                                                                                 ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [DISPLAY](https://developer.android.com/reference/kotlin/android/icu/util/ULocale.Category#ENUM_VALUE:DISPLAY) Category used to represent the default locale for displaying user interfaces.            |
| [FORMAT](https://developer.android.com/reference/kotlin/android/icu/util/ULocale.Category#ENUM_VALUE:FORMAT) Category used to represent the default locale for formatting date, number and/or currency. |

## Enum values

### DISPLAY

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

```
enum val DISPLAY : ULocale.Category
```

Category used to represent the default locale for displaying user interfaces.  

### FORMAT

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

```
enum val FORMAT : ULocale.Category
```

Category used to represent the default locale for formatting date, number and/or currency.