# DisplayOptions.DisplayLength

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

# DisplayLength

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/icu/text/DisplayOptions.DisplayLength "View this page in Java")  

```
class DisplayLength
```

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

|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [DisplayOptions.DisplayLength.LENGTH_FULL](https://developer.android.com/reference/kotlin/android/icu/text/DisplayOptions.DisplayLength#ENUM_VALUE:LENGTH_FULL),[DisplayOptions.DisplayLength.LENGTH_SHORT](https://developer.android.com/reference/kotlin/android/icu/text/DisplayOptions.DisplayLength#ENUM_VALUE:LENGTH_SHORT),[DisplayOptions.DisplayLength.UNDEFINED](https://developer.android.com/reference/kotlin/android/icu/text/DisplayOptions.DisplayLength#ENUM_VALUE:UNDEFINED) |-------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------| | [DisplayOptions.DisplayLength.LENGTH_FULL](https://developer.android.com/reference/kotlin/android/icu/text/DisplayOptions.DisplayLength#ENUM_VALUE:LENGTH_FULL)   | Uses full names when generating a locale name, e. | | [DisplayOptions.DisplayLength.LENGTH_SHORT](https://developer.android.com/reference/kotlin/android/icu/text/DisplayOptions.DisplayLength#ENUM_VALUE:LENGTH_SHORT) | Use short names when generating a locale name, e. | | [DisplayOptions.DisplayLength.UNDEFINED](https://developer.android.com/reference/kotlin/android/icu/text/DisplayOptions.DisplayLength#ENUM_VALUE:UNDEFINED)       | A possible setting for DisplayLength.             | |

Represents all the display lengths.

## Summary

|                                                                                        Enum values                                                                                        ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [LENGTH_FULL](https://developer.android.com/reference/kotlin/android/icu/text/DisplayOptions.DisplayLength#ENUM_VALUE:LENGTH_FULL) Uses full names when generating a locale name, e.   |
| [LENGTH_SHORT](https://developer.android.com/reference/kotlin/android/icu/text/DisplayOptions.DisplayLength#ENUM_VALUE:LENGTH_SHORT) Use short names when generating a locale name, e. |
| [UNDEFINED](https://developer.android.com/reference/kotlin/android/icu/text/DisplayOptions.DisplayLength#ENUM_VALUE:UNDEFINED) A possible setting for DisplayLength.                   |

|                                                                                                                                                                                                                     Properties                                                                                                                                                                                                                     ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[DisplayOptions.DisplayLength](https://developer.android.com/reference/kotlin/android/icu/text/DisplayOptions.DisplayLength#)!\>! | [VALUES](https://developer.android.com/reference/kotlin/android/icu/text/DisplayOptions.DisplayLength#VALUES:kotlin.collections.MutableList) Unmodifiable List of all display lengths constants. |

## Enum values

### LENGTH_FULL

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

```
enum val LENGTH_FULL : DisplayOptions.DisplayLength
```

Uses full names when generating a locale name, e.g. "United States" for US.  

### LENGTH_SHORT

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

```
enum val LENGTH_SHORT : DisplayOptions.DisplayLength
```

Use short names when generating a locale name, e.g. "U.S." for US.  

### UNDEFINED

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

```
enum val UNDEFINED : DisplayOptions.DisplayLength
```

A possible setting for DisplayLength. The DisplayLength context to be used is unknown (this is the default value).

## Properties

### VALUES

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

```
static val VALUES: MutableList<DisplayOptions.DisplayLength!>!
```

Unmodifiable List of all display lengths constants. List version of[values()](https://developer.android.com/reference/kotlin/android/icu/text/DisplayOptions.DisplayLength#).