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 ISvgData

interface ISvgData
Extends com.amazon.apmf.IStandard Represents an SVG payload that can be rendered by an ISvgView2. The instance can be passed to ISvgView2::setData to display it. Obtain one from ISvgModule2::makeSvgData or from ISvgLoadListener::onSuccess.

Methods

getXml()

string getXml()
Returns the SVG XML markup this payload was created from.

Returns

string The SVG XML string.

getViewBox()

com.amazon.kepler.uitoolkit.graphics.Rect? getViewBox()
Returns the viewBox attribute of the SVG payload.

Returns

com.amazon.kepler.uitoolkit.graphics.Rect? The return value is optional and might be absent. The declared viewBox as a Rect in SVG user units, or null if none is declared.
Last modified on October 29, 2026