Represents the styles of the links in the Text in different states

Summary

Public constructors

TextLinkStyles(
    linkStyle: SpanStyle?,
    linkFocusedStyle: SpanStyle?,
    linkHoveredStyle: SpanStyle?,
    linkPressedStyle: SpanStyle?
)
Cmn

Public functions

TextLinkStyles
copy(
    linkStyle: SpanStyle?,
    linkFocusedStyle: SpanStyle?,
    linkHoveredStyle: SpanStyle?,
    linkPressedStyle: SpanStyle?
)

Returns a copy of this TextLinkStyles, optionally overriding some of the values.

Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn

Public properties

SpanStyle?

style to be applied to links present in the string when they are focused

Cmn
SpanStyle?

style to be applied to links present in the string when they are hovered

Cmn
SpanStyle?

style to be applied to links present in the string when they are pressed

Cmn
SpanStyle?

style to be applied to links present in the string

Cmn

Public constructors

TextLinkStyles

TextLinkStyles(
    linkStyle: SpanStyle?,
    linkFocusedStyle: SpanStyle? = null,
    linkHoveredStyle: SpanStyle? = null,
    linkPressedStyle: SpanStyle? = null
)
Parameters
linkStyle: SpanStyle?

style to be applied to links present in the string

linkFocusedStyle: SpanStyle? = null

style to be applied to links present in the string when they are focused

linkHoveredStyle: SpanStyle? = null

style to be applied to links present in the string when they are hovered

linkPressedStyle: SpanStyle? = null

style to be applied to links present in the string when they are pressed

Public functions

copy

fun copy(
    linkStyle: SpanStyle? = this.linkStyle,
    linkFocusedStyle: SpanStyle? = this.linkFocusedStyle,
    linkHoveredStyle: SpanStyle? = this.linkHoveredStyle,
    linkPressedStyle: SpanStyle? = this.linkPressedStyle
): TextLinkStyles

Returns a copy of this TextLinkStyles, optionally overriding some of the values. This uses the null to mean “use the value from the source”

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

linkFocusedStyle

val linkFocusedStyleSpanStyle?

style to be applied to links present in the string when they are focused

linkHoveredStyle

val linkHoveredStyleSpanStyle?

style to be applied to links present in the string when they are hovered

linkPressedStyle

val linkPressedStyleSpanStyle?

style to be applied to links present in the string when they are pressed

linkStyle

val linkStyleSpanStyle?

style to be applied to links present in the string