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

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
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.
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
fun isStandalone(): Boolean
Is this a standalone style?
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

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