action

abstract fun action(action: T, event: E)

To be called whenever a certain action happens.

Parameters

action

the action that happened

event

the event that triggered the action