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

Data object TextChunk2

interface struct TextChunk2
Represents a chunk of on-screen text with associated metadata.

Fields

text

string — Required
The text in this chunk

bounds

Point[][] — Required
A list of polygons describing the onscreen locations of each character in the text

fontName

string — Required
The name of the font

fontSize

double — Required
The size of the font in points (1/72 inch)

attributes

string[] — Required
Formatting and style properties applied to the text. This property can take either the standard attributes listed in the UCC Publisher API user guide, or an app-specific text attribute.

language

com.amazon.apmf.Locale — Required
The language of the text

interpretationType

TextInterpretationType — Required
The interpretation type of the text
Last modified on October 29, 2026