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 IJsInvokeCallback

interface IJsInvokeCallback
Extends com.amazon.apmf.IStandard JavaScript callback interface.

Methods

invoke()

string invoke(string[] args)
Callback that will be invoked when JavaScript calls the function, using injected function name and scope. See [IHeadlessWebRuntime#addJavaScriptInterface] API for more details.

Parameters

args
string[] — Required

Returns

string Returns the data back to JavaScript layer.
Last modified on October 29, 2026