addListener

Registers a listener to receive events.

Parameters

listener

The listener to be added.