Added in API level 35

Capitalization


class Capitalization
kotlin.Any
   ↳ kotlin.Enum<android.icu.text.DisplayOptions.Capitalization>
   ↳ android.icu.text.DisplayOptions.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.

Properties
static MutableList<DisplayOptions.Capitalization!>!

Unmodifiable List of all the capitalizations constants.

Enum values

BEGINNING_OF_SENTENCE

Added in API level 35
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

Added in API level 35
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

Added in API level 35
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.

UI_LIST_OR_MENU

Added in API level 35
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

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

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

Properties

VALUES

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

Unmodifiable List of all the capitalizations constants. List version of values().