Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

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()

void textStyle(ITextStyle* textStyle)
Set the text style for the text layout.

Parameters

textStyle
ITextStyle* — Required The text style to be applied to the text.

paragraphStyle()

void paragraphStyle(IParagraphStyle* paragraphStyle)
Set the paragraph style for the text layout.

Parameters

paragraphStyle
IParagraphStyle* — Required The paragraph style to be applied to the layout.

build()

ITextLayout* build()
Constructs the text layout using the specified attributes and returns the finalized ITextLayout.

Returns

ITextLayout* An ITextLayout instance representing the constructed text layout.
Last modified on October 29, 2026