Interface IWindow2
interface IWindow2
Extends IWindow
Revision 2 of IWindow.
Methods
addKeyEventListener()
Adds window key events listener. The listener will continue to receive events until ISubscription#unsubscribe() is called or until the event source is destroyed.com.amazon.apmf.ISubscription*addKeyEventListener(IKeyEventListener*listener)
Parameters
listener
IKeyEventListener* — Required
IKeyEventListener Listener interface
Returns
com.amazon.apmf.ISubscription*
ISubscription related to this listener interface
[IKeyEventListener]
Throws
DeviceError— if IWindow is not in valid stateNullPointerError— if any input argument is null pointer while a non-null one is expected
addTouchEventListener()
Adds window touch events listener. The listener will continue to receive events until ISubscription#unsubscribe() is called or until the event source is destroyed.com.amazon.apmf.ISubscription*addTouchEventListener(ITouchEventListener*listener)
Parameters
listener
ITouchEventListener* — Required
ITouchEventListener Listener interface
Returns
com.amazon.apmf.ISubscription*
ISubscription related to this listener interface
[ITouchEventListener]
Throws
DeviceError— if IWindow is not in valid stateNullPointerError— if any input argument is null pointer while a non-null one is expected
addPointerEventListener()
Adds window pointer events listener. The listener will continue to receive events until ISubscription#unsubscribe() is called or until the event source is destroyed.com.amazon.apmf.ISubscription*addPointerEventListener(IPointerEventListener*listener)
Parameters
listener
IPointerEventListener* — Required
IPointerEventListener Listener interface
Returns
com.amazon.apmf.ISubscription*
ISubscription related to this listener interface
[IPointerEventListener]
Throws
DeviceError— if IWindow is not in valid stateNullPointerError— if any input argument is null pointer while a non-null one is expected

