Skip to content

AddDisplayListEventListener

Navigation: ADLX SDK ReferencesADLX InterfacesDisplayIADLXDisplayChangedHandling

Syntax

ADLX_RESULT    AddDisplayListEventListener (IADLXDisplayListChangedListener* pDisplayListChangedListener);

Parameters

#DirectionNameTypeDescription
1.[in]pDisplayListChangedListenerIADLXDisplayListChangedListenerThe pointer to the event listener interface to register for receiving the display list change notifications.

Return Value

If the event listener is successfully registered, ADLX_OK is returned.

If the event listener is not successfully registered, an error code is returned.

Refer to ADLX_RESULT for success codes and error codes.

Remarks

After the event listener is successfully registered, ADLX will call OnDisplayListChanged method of the listener when the display list changes. The event listener instance must exist until the application unregisters the event listener with RemoveDisplayListEventListener.

Requirements

Headerinclude “IDisplays.h”
Minimum version1.0

See Also: RemoveDisplayListEventListener, IADLXDisplayListChangedListener, OnDisplayListChanged