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 IWindowEventDispatcher

interface IWindowEventDispatcher
Extends com.amazon.apmf.IStandard This interface will be used to add the window event listeners.

Methods

addBackEventListener()

com.amazon.apmf.ISubscription* addBackEventListener(IBackEventListener* listener)
Adds a listener for back navigation events. The listener registered would be processed only if its enabled. When multiple callbacks are registered, they are invoked in the reverse order of their addition. For instance, if user add three callbacks — one, two, and three — in that sequence, they will be executed in the order three, two, and one. Additionally, each callback is triggered only if the preceding callback is not enabled. Using the previous example, callback two will execute only if callback three is not enabled, and callback one will run only if both callback three and callback two are not enabled. Note: If there is atleast one IBackEventListener enabled default back handling will not be executed.

Parameters

listener
IBackEventListener* — Required The back navigation listener

Returns

com.amazon.apmf.ISubscription* ISubscription object related to the listener, which can be used to unregister the listener.
Last modified on October 29, 2026