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:
- Provide a main window to display your app’s content.
- Create additional windows (as needed) to display additional content.
Methods
setUIWindowEventListener()
Sets listener for window events and returns a subscription object related to it. Only onecom.amazon.apmf.ISubscription*setUIWindowEventListener(IUIWindowEventListener*listener)
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()
Returns the attributes of the window.IUIWindowAttributes*getWindowAttributes()
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.

