This function adds core eventemitter functionality to the targeted class. It modifies the class and the instance.
// viewGroup-Android.jsconst Events = { ...View.Events, ...EventList }; // Inherit the Parent Eventsconst EventFunctions = { [EventsList.ViewAdded]: function() { this.onViewAdded = EventEmitterWrapper(this, EventList.ViewAdded, null); }}function ViewGroup() { function emitterCallBack() { if (!this.didSetHierarchyChangeListener) { setHierarchyChangeListener(this); } } EventEmitterCreator(this, EventFunctions, emitterCallBack.bind(this));}
Generated using TypeDoc
This function adds core eventemitter functionality to the targeted class. It modifies the class and the instance.
Example