onEvent

abstract fun onEvent(event: EventType)

Called when an event is generated