Click or drag to resize

DesktopConnectionaddEventCallback Method

Registers an event listener on the specified event.

Namespace:  Openfin.Desktop
Assembly:  OpenfinDesktop (in OpenfinDesktop.dll) Version: 17.6.0
Syntax
C#
public void addEventCallback(
	JObject subscriptionObject,
	AckCallback listener,
	AckCallback callback,
	AckCallback errorCallback,
	Object source
)

Parameters

subscriptionObject
Type: JObject
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
Type: Openfin.DesktopAckCallback
A function that is called if the method succeeds.
errorCallback
Type: Openfin.DesktopAckCallback
A function that is called if the method fails. The reason for failure is passed as an argument.
source
Type: SystemObject
The message source to pair with resulting instances of AckCallback.
See Also