setMaxWidth

fun setMaxWidth(maxWidth: Int): Text

Sets the maximum width of the text, splitting it into multiple lines if necessary.

Return

the Text object for method chaining

Parameters

maxWidth

the maximum width of the text

Sources

Link copied to clipboard