API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IHTMLVIEWMODEL_ADDLISTENER()

Brew Release
Brew MP 1.0.2
See Also
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.
Params
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.
Interface
Prototype
  •    int IHTMLViewModel_AddListener(IHTMLViewModel *pif, ModelListener *pl); 
    
Return
  •    AEE_SUCCESS          - Listener successfully added
       AEE_EBADPARM         - Invalid argument
       ENOMEMORY            - Insufficient memory
    
Side Effect
  • None
Comments
There is no guarantee that the listeners will be called in order.