Stay organized with collections
Save and categorize content based on your preferences.
NameStyle
class 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.
|
Enum values
DIALECT_NAMES
enum val DIALECT_NAMES : DisplayOptions.NameStyle
Use dialect names, when generating a locale name, e.g. en_GB displays as 'British English'.
STANDARD_NAMES
enum val STANDARD_NAMES : DisplayOptions.NameStyle
Use standard names when generating a locale name, e.g. en_GB displays as 'English (United Kingdom)'.
UNDEFINED
enum val UNDEFINED : DisplayOptions.NameStyle
A possible setting for NameStyle. The NameStyle context to be used is unknown (this is the default value).
Properties
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# DisplayOptions.NameStyle\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nNameStyle\n=========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/icu/text/DisplayOptions.NameStyle \"View this page in Java\") \n\n```\nclass NameStyle\n```\n\n|---|---|------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\\\u003c[android.icu.text.DisplayOptions.NameStyle](#)\\\u003e ||\n| | ↳ | [android.icu.text.DisplayOptions.NameStyle](#) |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [DisplayOptions.NameStyle.DIALECT_NAMES](#ENUM_VALUE:DIALECT_NAMES), [DisplayOptions.NameStyle.STANDARD_NAMES](#ENUM_VALUE:STANDARD_NAMES), [DisplayOptions.NameStyle.UNDEFINED](#ENUM_VALUE:UNDEFINED) |-----------------------------------------------------------------------|------------------------------------------------------| | [DisplayOptions.NameStyle.DIALECT_NAMES](#ENUM_VALUE:DIALECT_NAMES) | Use dialect names, when generating a locale name, e. | | [DisplayOptions.NameStyle.STANDARD_NAMES](#ENUM_VALUE:STANDARD_NAMES) | Use standard names when generating a locale name, e. | | [DisplayOptions.NameStyle.UNDEFINED](#ENUM_VALUE:UNDEFINED) | A possible setting for NameStyle. | |\n\nRepresents all the name styles.\n\nSummary\n-------\n\n| Enum values ||\n|---------------------------------------------------------------------------------------------------|---|\n| [DIALECT_NAMES](#ENUM_VALUE:DIALECT_NAMES) Use dialect names, when generating a locale name, e. |\n| [STANDARD_NAMES](#ENUM_VALUE:STANDARD_NAMES) Use standard names when generating a locale name, e. |\n| [UNDEFINED](#ENUM_VALUE:UNDEFINED) A possible setting for NameStyle. |\n\n| Properties ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|\n| static [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\\\u003c[DisplayOptions.NameStyle](#)!\\\u003e! | [VALUES](#VALUES:kotlin.collections.MutableList) Unmodifiable List of all name styles constants. |\n\nEnum values\n-----------\n\n### DIALECT_NAMES\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val DIALECT_NAMES : DisplayOptions.NameStyle\n```\n\nUse dialect names, when generating a locale name, e.g. en_GB displays as 'British English'. \n\n### STANDARD_NAMES\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val STANDARD_NAMES : DisplayOptions.NameStyle\n```\n\nUse standard names when generating a locale name, e.g. en_GB displays as 'English (United Kingdom)'. \n\n### UNDEFINED\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val UNDEFINED : DisplayOptions.NameStyle\n```\n\nA possible setting for NameStyle. The NameStyle context to be used is unknown (this is the default value).\n\nProperties\n----------\n\n### VALUES\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val VALUES: MutableList\u003cDisplayOptions.NameStyle!\u003e!\n```\n\nUnmodifiable List of all name styles constants. List version of [values()](#)."]]