sdk-maps / com.tomtom.online.sdk.map.style.expression / FormattedTextSection

FormattedTextSection

@Beta(2020, 12) class FormattedTextSection

Represents text and its format parameters. Supports escape sequences such as '\n' for multiline strings.

Functions

formatSection

static fun formatSection(text: String, fontScale: Double?, fontStack: MutableList<String!>?, textColor: Int?): FormattedTextSection!

Creates a FormattedTextSection containing provided text, formatted according to provided fontScale, fontStack and textColor.