EventListener

interface EventListener<T : Event>

A listener (handler) for an event type.

Types

Link copied to clipboard
interface Builder<T : Event>

A builder for an event listener.

Link copied to clipboard
object Companion
Link copied to clipboard
@ApiStatus.Internal
interface Factory
Link copied to clipboard

The result of running an event listener.

Functions

Link copied to clipboard
abstract fun run(event: T): EventListener.Result

Runs this listener with the given event, and returns the result.

Properties

Link copied to clipboard
abstract val eventType: Class<T>

The type of events this listener listens for.