onEvent

abstract fun onEvent(event: E)(source)

Called when an event occurs.

This method will be invoked by the event source whenever an event of type E needs to be delivered to this listener.

Parameters

event

The event that occurred