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 ITextLayout

interface ITextLayout
Extends com.amazon.apmf.IStandard An interface that manages text layout in visual elements on the screen.

Methods

getDimensions()

Size getDimensions()
Retrieves the width and height of the text on the screen after layout step.

Returns

Size A Size struct representing the dimensions of the text after layout step.

draw()

void draw(ICanvas* canvas, Point origin)
Renders the content on the specified canvas at the given origin point.

Parameters

canvas
ICanvas* — Required graphics canvas where the object will be drawn.
origin
Point — Required The origin point on the canvas where the text will be positioned.
Last modified on October 29, 2026