WindowaddEventListener Method |
Note: This API is now obsolete.
Registers an event listener on the specified event.
Namespace:
Openfin.Desktop
Assembly:
OpenfinDesktop (in OpenfinDesktop.dll) Version: 14.1.0-alpha3
Syntax [ObsoleteAttribute("This method is obsolete. Use Window events instead.")]
public void addEventListener(
string type,
AckCallback listener,
AckCallback callback = null,
AckCallback errorCallback = null
)
Parameters
- type
- Type: SystemString
A JSON object containing subscription information such as the topic and type.
- listener
- Type: Openfin.DesktopAckCallback
A function that is called whenever an event of the specified type occurs.
It is passed an event object containing information related to the event.
- callback (Optional)
- Type: Openfin.DesktopAckCallback
(Optional) A function that is called if the method succeeds.
- errorCallback (Optional)
- Type: Openfin.DesktopAckCallback
(Optional) A function that is called if the method fails.
The reason for failure is passed as an argument.
See Also