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

Developer

API Reference

IMEDIAFRAMEMODEL_ADDLISTENER()

Brew Release
Brew MP 1.0.2
Description
This function allows objects such as widgets and UI controls to attach a listener to the given text model. The listener includes a callback function that BREW will call whenever the model has changed state, thereby notifying the owner of the listener that data has changed.
Params
pif
[]:
Pointer to the IMediaFrameModel interface object.
pl
[]:
Pointer to the ModelListener that will be attached to the object. The ModelListener will contain the PFNLISTENER callback function BREW will call to notify the registering object of changes to the value model.
Interface
Prototype
  •    int IMediaFrameModel_AddListener(IMediaFrameModel *pif, ModelListener *pl)
    
Return
  •    AEE_SUCCESS          - Listener successfully added
       AEE_EBADPARM         - Invalid argument
       AEE_ENOMEMORY        - Insufficient memory
    
Side Effect
  • None
Comments
None