IEventController
Interface for an event controller. For controlling how events are subscribed to and unsubscribed from on a particular event manager.
Constructor
IEventController()
Methods
Name |
Description |
Called on the first subscription to the specified event type using the specified event manager. This method is optional. |
|
Called when a particular event type stops listening on the specified event manager (the last subscription is deleted). This method is optional. |
Methods details
onStartListening
{} onStartListening(events, type)
Called on the first subscription to the specified event type using the specified event manager. This method is optional.
Parameters:
Parameter |
Default value |
Description |
— |
Type: IEventManager Event manager. |
|
|
— |
Type: String Type of event. |
* Mandatory parameter/option.
onStopListening
{} onStopListening(events, type)
Called when a particular event type stops listening on the specified event manager (the last subscription is deleted). This method is optional.
Parameters:
Parameter |
Default value |
Description |
— |
Type: IEventManager Event manager. |
|
|
— |
Type: String Type of event. |
* Mandatory parameter/option.
Mandatory parameter/option.