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 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()

com.amazon.apmf.ISubscription* addKeyboardListener(IKeyboardListener* listener)
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.

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.
Last modified on October 29, 2026