Interface IWindowEventDispatcher
interface IWindowEventDispatcher
Extends com.amazon.apmf.IStandard
This interface will be used to add the window event listeners.
Methods
addBackEventListener()
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 onecom.amazon.apmf.ISubscription*addBackEventListener(IBackEventListener*listener)
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.

