TextStyle

enum TextStyle : Enum<TextStyle>

A style of text. The meaning may vary depending on the context. Standalone styles should be used when displaying text by itself since some languages have different names in the context of a date and time.

Entries

NARROW_STANDALONE
Link copied to clipboard
common
NARROW
Link copied to clipboard
common
SHORT_STANDALONE
Link copied to clipboard
common
SHORT
Link copied to clipboard
common
FULL_STANDALONE
Link copied to clipboard
common
FULL
Link copied to clipboard
common

Functions

asNormal
Link copied to clipboard
common
fun asNormal(): TextStyle

Convert to a normal style, if standalone.

asStandalone
Link copied to clipboard
common
fun asStandalone(): TextStyle

Convert to a standalone style, if normal.

isStandalone
Link copied to clipboard
common
fun isStandalone(): Boolean

Is this a standalone style?

Properties

name
Link copied to clipboard
common
val name: String
ordinal
Link copied to clipboard
common
val ordinal: Int