Interface IWindowEventDispatcher2
interface IWindowEventDispatcher2
Extends IWindowEventDispatcher
This interface extends IWindowEventDispatcher with additional functionalities to
listen for keyboard UI changes. All methods of this interface must be called from the UI thread.
Methods
addKeyboardListener()
Adds a listener to the window for handling keyboard UI change events. This listener can be useful for implementing custom logic for adjusting the UI when keyboard becomes visible, gets hidden or changes its size. When multiple listeners are registered, they are invoked in the 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 one, two, and three.com.amazon.apmf.ISubscription*addKeyboardListener(IKeyboardListener*listener)
Parameters
listener
IKeyboardListener* — Required
The keyboard UI change listener
Returns
com.amazon.apmf.ISubscription*
ISubscription object related to the listener, which can be used to unregister the listener.

