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 SurroundingText

interface struct SurroundingText
Represents the contextual content in editor in the app.

Fields

text

string — Required
The surrounding string that contains the text around the cursor.

bytesSelStart

i32 — Required
The start index of selection within the surrounding string,

bytesSelEnd

i32 — Required
The end index of selection within the surrounding string.
Last modified on October 29, 2026