The OnDisplayListChanged method is called by ADLX when the display list changes.
adlx_bool OnDisplayListChanged (IADLXDisplayList * pNewDisplay)
[out]pNewDisplay IADLXDisplayList* The pointer to the new display list.
If the application requires ADLX to continue notifying the next listener, true must be returned.
If the application requires ADLX to stop notifying the next listener, false must be returned.
Once the application registers to the notifications with AddDisplayListEventListener , ADLX will call this method until the application unregisters from the notifications with RemoveDisplayListEventListener .
The method should return quickly to not block the execution path in ADLX. If the method requires a long processing of the event notification, the application must hold onto a reference to the new display list with Acquire and make it available on an asynchronous thread and return immediately. When the asynchronous thread is done processing it must discard the new display list with Release .