Developer

API Reference

IHTMLViewModel_AddListener()

Brew Release
Brew MP 1.0.2
Description
This function allows client objects to attach a listener to the given model. The listener includes a callback function that will be called whenever the model has changed state.
Parameters
  • pif
    []:
    Pointer to the IHTMLViewModel interface object.
  • pl
    []:
    Pointer to the ModelListener that will be attached to the object. The ModelListener will contain the PFNLISTENER callback function that will be called for IHTMLViewModel events.
Prototype
   int IHTMLViewModel_AddListener(IHTMLViewModel *pif, ModelListener *pl); 
Return
   AEE_SUCCESS          - Listener successfully added
   AEE_EBADPARM         - Invalid argument
   ENOMEMORY            - Insufficient memory
Side Effect
None
Comment
There is no guarantee that the listeners will be called in order.
  • Follow