| Name | Type | Scope |
|---|---|---|
| ADD_ARTICLE | String | public |
| CHANGE | String | public |
| CHANGE_APIKEY | String | public |
| Methodname | Returns | Params |
|---|---|---|
| AddListener | null | array [label (String), callback (null)] |
| RemoveListener | boolean | array [label (String), callback (null)] |
| Emit | boolean | array [label (String), ...args (null)] |
| Methodname | Returns | Params |
|---|---|---|
| Init | null | null |
Subscribes a callback to given channel (label) on the eventlistener.
EventManager.instance.addListener(EventManager.ADD_ARTICLE, this.myMethod);Unsubscribes a callback to given channel (label) on the eventlistener.
EventManager.instance.addListener(EventManager.ADD_ARTICLE, this.myMethod);Triggers a channel event to all subscribers with given data/params.
EventManager.instance.addListener(EventManager.ADD_ARTICLE, this.myMethod);`Initializes the EventManager.