StyledString

actual class StyledString

A text configured with StringStyleAttribute

expect class StyledString

A text configured with StringStyleAttribute

actual data class StyledString

A text configured with StringStyleAttribute

Constructors

Link copied to clipboard
constructor(spannable: Spannable, defaultTextStyle: KalugaTextStyle, linkStyle: LinkStyle?)
constructor(attributeString: NSAttributedString, defaultTextStyle: KalugaTextStyle, linkStyle: LinkStyle?)

Properties

Link copied to clipboard
val attributeString: NSAttributedString

the NSAttributedString styled according to some StringStyleAttribute

Link copied to clipboard

The KalugaTextStyle to apply when no StringStyleAttribute are set for a given range. This may be partially overwritten (e.g. StringStyleAttribute.CharacterStyleAttribute.ForegroundColor may overwrite KalugaTextStyle.color)

The KalugaTextStyle to apply when no StringStyleAttribute are set for a given range. This may be partially overwritten (e.g. StringStyleAttribute.CharacterStyleAttribute.ForegroundColor may overwrite KalugaTextStyle.color)

The KalugaTextStyle to apply when no StringStyleAttribute are set for a given range. This may be partially overwritten (e.g. StringStyleAttribute.CharacterStyleAttribute.ForegroundColor may overwrite KalugaTextStyle.color)

Link copied to clipboard
actual val linkStyle: LinkStyle?

The LinkStyle to apply when StringStyleAttribute.Link is applied. When null the Theme default will be used

expect val linkStyle: LinkStyle?

The LinkStyle to apply when StringStyleAttribute.Link is applied. When null the platform default will be used

actual val linkStyle: LinkStyle?

The LinkStyle to apply when StringStyleAttribute.Link is applied. When null the Theme default will be used

Link copied to clipboard

Gets the plain string of a StyledString

Gets the plain string of a StyledString

Gets the plain string of a StyledString

Link copied to clipboard

the Spannable styled according to some StringStyleAttribute