onEvent

abstract fun onEvent(event: T)(source)

This function is called when the event is triggered

Parameters

event

The event that is triggered