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 IUIWindow

interface IUIWindow
Extends com.amazon.apmf.IStandard Interface represents a window which is a backdrop for an app’s user interface. Windows work with your view controllers IViewController to handle events and to perform many other tasks that are fundamental to your app’s operation. Windows are created only when you need to do the following:
  1. Provide a main window to display your app’s content.
  2. Create additional windows (as needed) to display additional content.

Methods

setUIWindowEventListener()

com.amazon.apmf.ISubscription* setUIWindowEventListener(IUIWindowEventListener* listener)
Sets listener for window events and returns a subscription object related to it. Only one IUIWindowEventListener can be set to the window at a time. It replaces any previously set IUIWindowEventListener.

Parameters

listener
IUIWindowEventListener* — Required A pointer to IUIWindowEventListener.

Returns

com.amazon.apmf.ISubscription* ISubscription object related to the listener.

getWindowAttributes()

IUIWindowAttributes* getWindowAttributes()
Returns the attributes of the window.

Returns

IUIWindowAttributes* The pointer to IUIWindowAttributes defining the attributes of the window.

show()

void show()
Shows the window.

hide()

void hide()
Hides the window.

isVisible()

bool isVisible()
Checks if the window is visible or not.

Returns

bool boolean, True if window is visible else False.
Last modified on October 29, 2026