Added in API level 35

NameStyle


class NameStyle
kotlin.Any
   ↳ kotlin.Enum<android.icu.text.DisplayOptions.NameStyle>
   ↳ android.icu.text.DisplayOptions.NameStyle

Represents all the name styles.

Summary

Enum values

Use dialect names, when generating a locale name, e.

Use standard names when generating a locale name, e.

A possible setting for NameStyle.

Properties
static MutableList<DisplayOptions.NameStyle!>!

Unmodifiable List of all name styles constants.

Enum values

DIALECT_NAMES

Added in API level 35
enum val DIALECT_NAMES : DisplayOptions.NameStyle

Use dialect names, when generating a locale name, e.g. en_GB displays as 'British English'.

STANDARD_NAMES

Added in API level 35
enum val STANDARD_NAMES : DisplayOptions.NameStyle

Use standard names when generating a locale name, e.g. en_GB displays as 'English (United Kingdom)'.

UNDEFINED

Added in API level 35
enum val UNDEFINED : DisplayOptions.NameStyle

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

Properties

VALUES

Added in API level 35
static val VALUES: MutableList<DisplayOptions.NameStyle!>!

Unmodifiable List of all name styles constants. List version of values().