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.

enum TextStyle : Enum<TextStyle>

Entries

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

Functions

asNormal
Link copied to clipboard
common

Convert to a normal style, if standalone.

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

Convert to a standalone style, if normal.

fun asStandalone(): TextStyle
compareTo
Link copied to clipboard
common
operator override fun compareTo(other: TextStyle): Int
equals
Link copied to clipboard
common
operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
override fun hashCode(): Int
isStandalone
Link copied to clipboard
common

Is this a standalone style?

fun isStandalone(): Boolean
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

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