FormatSectionBuilder

class FormatSectionBuilder(content: Expression)

Builder for a Formatted Section.

Parameters

content

the content of the FormattedSection as a text string literal or an image as Expression

Constructors

FormatSectionBuilder
Link copied to clipboard
fun FormatSectionBuilder(content: Expression)
the content of the FormattedSection as a text string literal or an image as Expression

Functions

build
Link copied to clipboard
fun build(): List<Expression>
Build a list of expressions as one format section.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
fontScale
Link copied to clipboard
fun fontScale(fontScale: Expression): Expression.FormatSectionBuilder
If set, the font-scale argument specifies a scaling factor relative to the text-size specified in the root layout properties.
fun fontScale(fontScale: Double): Expression.FormatSectionBuilder
If set, the font-scale argument specifies a scaling factor relative to the text-size specified in the root layout properties.
fun fontScale(block: Expression.ExpressionBuilder.() -> Unit): Expression.FormatSectionBuilder
If set, the font-scale argument specifies a scaling factor relative to the text-size specified in the root layout properties.
hashCode
Link copied to clipboard
open fun hashCode(): Int
textColor
Link copied to clipboard
fun textColor(textColor: Expression): Expression.FormatSectionBuilder
If set, the text-color argument overrides the color specified by the root paint properties.
fun textColor(block: Expression.ExpressionBuilder.() -> Unit): Expression.FormatSectionBuilder
If set, the text-color argument overrides the color specified by the root paint properties.
fun textColor(@ColorInt() textColor: Int): Expression.FormatSectionBuilder
If set, the text-color argument overrides the color specified by the root paint properties.
fun textColor(textColor: String): Expression.FormatSectionBuilder
If set, the text-color argument overrides the color specified by the root paint properties.
textFont
Link copied to clipboard
fun textFont(textFont: Expression): Expression.FormatSectionBuilder
If set, the text-font argument overrides the font specified by the root layout properties.
fun textFont(block: Expression.ExpressionBuilder.() -> Unit): Expression.FormatSectionBuilder
If set, the text-font argument overrides the font specified by the root layout properties.
fun textFont(textFont: List<String>): Expression.FormatSectionBuilder
If set, the text-font argument overrides the font specified by the root layout properties.
toString
Link copied to clipboard
open fun toString(): String