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 ISvgLoader

interface ISvgLoader
Extends com.amazon.apmf.IStandard Interface to load SVG data from a URI.

Methods

load()

ISvgLoadRequest* load(string uri, ISvgLoadListener* listener)
Initiates an asynchronous SVG load request. The source is selected by URI scheme: “file://” loads from the local filesystem; other schemes are currently treated as network URLs, and more may be recognized in future revisions. See ISvgLoadListener for receiving the result.

Parameters

uri
string — Required URI string identifying the SVG source (e.g. a “file://” path or a network URL).
listener
ISvgLoadListener* — Required ISvgLoadListener to listen to the load events. The loader retains a strong reference to the listener until a terminal callback (onSuccess / onFailure / onCanceled) fires.

Returns

ISvgLoadRequest* ISvgLoadRequest on which the user can call cancel.
Last modified on October 29, 2026