addEventListener
addEventListener(event: , callback: Function
): void
Add handler for specific event generated by application in specific state. Use only functions as handlers; anything except a function leads to the error and scenario termination when a handler will be called.
Parameters
event:
callback:
Function
Returns
type:
void