provide

actual fun provide(string: String, defaultTextStyle: KalugaTextStyle, linkStyle: LinkStyle?): StyledStringBuilder

Provides a StyledStringBuilder to build a StyledString for a given text

Return

the StyledStringBuilder to build a StyledString for string

Parameters

string

the text for which to build the StyledString

defaultTextStyle

the KalugaTextStyle to apply when no StringStyleAttribute are set for a given range

linkStyle

the LinkStyle to apply when StringStyleAttribute.Link is applied

expect fun provide(string: String, defaultTextStyle: KalugaTextStyle, linkStyle: LinkStyle? = null): StyledStringBuilder

Provides a StyledStringBuilder to build a StyledString for a given text

Return

the StyledStringBuilder to build a StyledString for string

Parameters

string

the text for which to build the StyledString

defaultTextStyle

the KalugaTextStyle to apply when no StringStyleAttribute are set for a given range

linkStyle

the LinkStyle to apply when StringStyleAttribute.Link is applied

actual fun provide(string: String, defaultTextStyle: KalugaTextStyle, linkStyle: LinkStyle?): StyledStringBuilder

Provides a StyledStringBuilder to build a StyledString for a given text

Return

the StyledStringBuilder to build a StyledString for string

Parameters

string

the text for which to build the StyledString

defaultTextStyle

the KalugaTextStyle to apply when no StringStyleAttribute are set for a given range

linkStyle

the LinkStyle to apply when StringStyleAttribute.Link is applied

actual fun provide(string: String, defaultTextStyle: KalugaTextStyle, linkStyle: LinkStyle?): StyledStringBuilder

Provides a StyledStringBuilder to build a StyledString for a given text

Return

the StyledStringBuilder to build a StyledString for string

Parameters

string

the text for which to build the StyledString

defaultTextStyle

the KalugaTextStyle to apply when no StringStyleAttribute are set for a given range

linkStyle

the LinkStyle to apply when StringStyleAttribute.Link is applied