Interface ITextLayoutBuilder
interface ITextLayoutBuilder
Extends com.amazon.apmf.IStandard
This interface defines a set of methods for constructing and customizing text
layouts, allowing you to specify attributes such as width, attributed text, text style,
and paragraph style. Once the desired attributes are set, you can use the ‘build’ method
to generate the final text layout.
Methods
textStyle()
Set the text style for the text layout.voidtextStyle(ITextStyle*textStyle)
Parameters
textStyle
ITextStyle* — Required
The text style to be applied to the text.
paragraphStyle()
Set the paragraph style for the text layout.voidparagraphStyle(IParagraphStyle*paragraphStyle)
Parameters
paragraphStyle
IParagraphStyle* — Required
The paragraph style to be applied to the layout.
build()
Constructs the text layout using the specified attributes and returns the finalized ITextLayout.ITextLayout*build()
Returns
ITextLayout*
An ITextLayout instance representing the constructed text layout.

