FormattedSection

constructor(@NonNull text: String)

Creates a formatted section.

Parameters

text

displayed string


constructor(@NonNull text: String, @Nullable fontScale: Number, @Nullable fontStack: Array<String>, @Nullable textColor: String)

Creates a formatted section.

Parameters

text

displayed string

fontScale

scale of the font, setting to null will fall back to style's default settings

fontStack

main and fallback fonts that are a part of the style, setting null will fall back to style's default settings. The requested font stack has to be a part of the used style. For more information see the documentation.

textColor

text color, setting to null will fall back to style's default settings. Value of red, green, blue components must range between 0 and 255, an alpha component must range between 0 and 1.

For more information see the documentation.


constructor(@NonNull text: String, @Nullable fontScale: Number, @Nullable fontStack: Array<String>)

Deprecated

Creates a formatted section.

Deprecated

use FormattedSection and setters or FormattedSection instead

Parameters

text

displayed string

fontScale

scale of the font, setting to null will fall back to style's default settings

fontStack

main and fallback fonts that are a part of the style, setting null will fall back to style's default settings


constructor(@NonNull text: String, @Nullable fontScale: Number)

Deprecated

Creates a formatted section.

Deprecated

use FormattedSection and setters or FormattedSection instead

Parameters

text

displayed string

fontScale

scale of the font, setting to null will fall back to style's default settings


constructor(@NonNull text: String, @Nullable fontStack: Array<String>)

Deprecated

Creates a formatted section.

Deprecated

use FormattedSection and setters or FormattedSection instead

Parameters

text

displayed string

fontStack

main and fallback fonts that are a part of the style, setting null will fall back to style's default settings