The interface is the primary method for handling events. Users implement the interface and register their listener on an using the method. The users should also remove their from its after they have completed using the listener.
Thetype exposes the following members.
This method is called whenever an event occurs of the type for which the interface was registered.