Stay organized with collections
Save and categorize content based on your preferences.
Capitalization
class Capitalization
Represents all the capitalization options.
Summary
Enum values |
The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for the beginning of a sentence.
|
The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for the middle of a sentence.
|
The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for stand-alone usage such as an isolated name on a calendar page.
|
The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for a user-interface list or menu item.
|
A possible setting for Capitalization.
|
Enum values
BEGINNING_OF_SENTENCE
enum val BEGINNING_OF_SENTENCE : DisplayOptions.Capitalization
The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for the beginning of a sentence.
MIDDLE_OF_SENTENCE
enum val MIDDLE_OF_SENTENCE : DisplayOptions.Capitalization
The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for the middle of a sentence.
STANDALONE
enum val STANDALONE : DisplayOptions.Capitalization
The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for stand-alone usage such as an isolated name on a calendar page.
enum val UI_LIST_OR_MENU : DisplayOptions.Capitalization
The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for a user-interface list or menu item.
UNDEFINED
enum val UNDEFINED : DisplayOptions.Capitalization
A possible setting for Capitalization. The capitalization 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.Capitalization\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nCapitalization\n==============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/icu/text/DisplayOptions.Capitalization \"View this page in Java\") \n\n```\nclass Capitalization\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.Capitalization](#)\\\u003e ||\n| | ↳ | [android.icu.text.DisplayOptions.Capitalization](#) |\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [DisplayOptions.Capitalization.BEGINNING_OF_SENTENCE](#ENUM_VALUE:BEGINNING_OF_SENTENCE), [DisplayOptions.Capitalization.MIDDLE_OF_SENTENCE](#ENUM_VALUE:MIDDLE_OF_SENTENCE), [DisplayOptions.Capitalization.STANDALONE](#ENUM_VALUE:STANDALONE), [DisplayOptions.Capitalization.UI_LIST_OR_MENU](#ENUM_VALUE:UI_LIST_OR_MENU), [DisplayOptions.Capitalization.UNDEFINED](#ENUM_VALUE:UNDEFINED) |------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [DisplayOptions.Capitalization.BEGINNING_OF_SENTENCE](#ENUM_VALUE:BEGINNING_OF_SENTENCE) | The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for the beginning of a sentence. | | [DisplayOptions.Capitalization.MIDDLE_OF_SENTENCE](#ENUM_VALUE:MIDDLE_OF_SENTENCE) | The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for the middle of a sentence. | | [DisplayOptions.Capitalization.STANDALONE](#ENUM_VALUE:STANDALONE) | The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for stand-alone usage such as an isolated name on a calendar page. | | [DisplayOptions.Capitalization.UI_LIST_OR_MENU](#ENUM_VALUE:UI_LIST_OR_MENU) | The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for a user-interface list or menu item. | | [DisplayOptions.Capitalization.UNDEFINED](#ENUM_VALUE:UNDEFINED) | A possible setting for Capitalization. | |\n\nRepresents all the capitalization options.\n\nSummary\n-------\n\n| Enum values ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [BEGINNING_OF_SENTENCE](#ENUM_VALUE:BEGINNING_OF_SENTENCE) The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for the beginning of a sentence. |\n| [MIDDLE_OF_SENTENCE](#ENUM_VALUE:MIDDLE_OF_SENTENCE) The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for the middle of a sentence. |\n| [STANDALONE](#ENUM_VALUE:STANDALONE) The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for stand-alone usage such as an isolated name on a calendar page. |\n| [UI_LIST_OR_MENU](#ENUM_VALUE:UI_LIST_OR_MENU) The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for a user-interface list or menu item. |\n| [UNDEFINED](#ENUM_VALUE:UNDEFINED) A possible setting for Capitalization. |\n\n| Properties ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| static [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\\\u003c[DisplayOptions.Capitalization](#)!\\\u003e! | [VALUES](#VALUES:kotlin.collections.MutableList) Unmodifiable List of all the capitalizations constants. |\n\nEnum values\n-----------\n\n### BEGINNING_OF_SENTENCE\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val BEGINNING_OF_SENTENCE : DisplayOptions.Capitalization\n```\n\nThe capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for the beginning of a sentence. \n\n### MIDDLE_OF_SENTENCE\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val MIDDLE_OF_SENTENCE : DisplayOptions.Capitalization\n```\n\nThe capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for the middle of a sentence. \n\n### STANDALONE\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val STANDALONE : DisplayOptions.Capitalization\n```\n\nThe capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for stand-alone usage such as an isolated name on a calendar page. \n\n### UI_LIST_OR_MENU\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val UI_LIST_OR_MENU : DisplayOptions.Capitalization\n```\n\nThe capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for a user-interface list or menu item. \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.Capitalization\n```\n\nA possible setting for Capitalization. The capitalization 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.Capitalization!\u003e!\n```\n\nUnmodifiable List of all the capitalizations constants. List version of [values()](#)."]]