# DateTimePatternGenerator.DisplayWidth

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

# DisplayWidth

*** ** * ** ***

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

```
class DisplayWidth
```

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

|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [DateTimePatternGenerator.DisplayWidth.ABBREVIATED](https://developer.android.com/reference/kotlin/android/icu/text/DateTimePatternGenerator.DisplayWidth#ENUM_VALUE:ABBREVIATED),[DateTimePatternGenerator.DisplayWidth.NARROW](https://developer.android.com/reference/kotlin/android/icu/text/DateTimePatternGenerator.DisplayWidth#ENUM_VALUE:NARROW),[DateTimePatternGenerator.DisplayWidth.WIDE](https://developer.android.com/reference/kotlin/android/icu/text/DateTimePatternGenerator.DisplayWidth#ENUM_VALUE:WIDE) |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------| | [DateTimePatternGenerator.DisplayWidth.ABBREVIATED](https://developer.android.com/reference/kotlin/android/icu/text/DateTimePatternGenerator.DisplayWidth#ENUM_VALUE:ABBREVIATED) | An abbreviated field name (may be the same as the wide version, if short enough) | | [DateTimePatternGenerator.DisplayWidth.NARROW](https://developer.android.com/reference/kotlin/android/icu/text/DateTimePatternGenerator.DisplayWidth#ENUM_VALUE:NARROW)           | The shortest possible field name (may be the same as the abbreviated version)    | | [DateTimePatternGenerator.DisplayWidth.WIDE](https://developer.android.com/reference/kotlin/android/icu/text/DateTimePatternGenerator.DisplayWidth#ENUM_VALUE:WIDE)               | The full field name                                                              | |

Field display name width constants for getFieldDisplayName

## Summary

|                                                                                                           Enum values                                                                                                           ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [ABBREVIATED](https://developer.android.com/reference/kotlin/android/icu/text/DateTimePatternGenerator.DisplayWidth#ENUM_VALUE:ABBREVIATED) An abbreviated field name (may be the same as the wide version, if short enough) |
| [NARROW](https://developer.android.com/reference/kotlin/android/icu/text/DateTimePatternGenerator.DisplayWidth#ENUM_VALUE:NARROW) The shortest possible field name (may be the same as the abbreviated version)              |
| [WIDE](https://developer.android.com/reference/kotlin/android/icu/text/DateTimePatternGenerator.DisplayWidth#ENUM_VALUE:WIDE) The full field name                                                                            |

## Enum values

### ABBREVIATED

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

```
enum val ABBREVIATED : DateTimePatternGenerator.DisplayWidth
```

An abbreviated field name (may be the same as the wide version, if short enough)  

### NARROW

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

```
enum val NARROW : DateTimePatternGenerator.DisplayWidth
```

The shortest possible field name (may be the same as the abbreviated version)  

### WIDE

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

```
enum val WIDE : DateTimePatternGenerator.DisplayWidth
```

The full field name