EventListener

fun interface EventListener<in T : Event>

Generic event listener reporting an Event of the given type.

Important: This is a Public Preview API. It may be changed or removed at any time.

Functions

Link copied to clipboard
abstract fun onEvent(event: T)

Called when an event is being published.