Registers a script as a listener for a specific event.
void registerListener ( String event-id, String[] params, String callback)
Registers a script as a listener for a specific event.
The event identifier (ID) of the event for which the script is to listen.
An array of the event parameters to pass to the event callback function that is called when the event is received.
The event callback function that is called when the event is received.