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

actual data 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: <Error class: unknown class>, defaultTextStyle: <Error class: unknown class>, linkStyle: <Error class: unknown class>?)
constructor(string: String, defaultTextStyle: KalugaTextStyle, linkStyle: LinkStyle?, attributed: List<Pair<StringStyleAttribute, IntRange>>)
constructor(string: String, defaultTextStyle: KalugaTextStyle, linkStyle: LinkStyle?, attributed: List<Pair<StringStyleAttribute, IntRange>>)

Properties

Link copied to clipboard

a list containing all StringStyleAttribute and the IntRange they should be applied to

a list containing all StringStyleAttribute and the IntRange they should be applied to

Link copied to clipboard
val attributeString: <Error class: unknown class>

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)

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

actual val linkStyle: LinkStyle?

The LinkStyle to apply when StringStyleAttribute.Link is applied. When null the Theme 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

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

Link copied to clipboard

the String to style

the String to style