DisplayOptions.NameStyle


public static final enum DisplayOptions.NameStyle
extends Enum<DisplayOptions.NameStyle>

java.lang.Object
   ↳ java.lang.Enum<android.icu.text.DisplayOptions.NameStyle>
     ↳ android.icu.text.DisplayOptions.NameStyle


Represents all the name styles.

Summary

Enum values

DisplayOptions.NameStyle  DIALECT_NAMES

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

DisplayOptions.NameStyle  STANDARD_NAMES

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

DisplayOptions.NameStyle  UNDEFINED

A possible setting for NameStyle. 

Fields

public static final List<DisplayOptions.NameStyle> VALUES

Unmodifiable List of all name styles constants.

Public methods

static DisplayOptions.NameStyle valueOf(String name)
static final NameStyle[] values()

Inherited methods

Enum values

DIALECT_NAMES

Added in API level 35
public static final DisplayOptions.NameStyle DIALECT_NAMES

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

STANDARD_NAMES

Added in API level 35
public static final DisplayOptions.NameStyle STANDARD_NAMES

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

UNDEFINED

Added in API level 35
public static final DisplayOptions.NameStyle UNDEFINED

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

Fields

VALUES

Added in API level 35
public static final List<DisplayOptions.NameStyle> VALUES

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

Public methods

valueOf

public static DisplayOptions.NameStyle valueOf (String name)

Parameters
name String

Returns
DisplayOptions.NameStyle

values

public static final NameStyle[] values ()

Returns
NameStyle[]