Rate this page:

addEventListener

Copy URL
addEventListener(event: 

AppEvents

,
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

Returns

  • type:

    void