Event Group
class EventGroup
A group that holds multiple EventHandles.
This class provides functionality to add event handlers to the group and unregister them all at once.
Functions
Link copied to clipboard
Adds an EventHandle to the group.
Link copied to clipboard
inline fun <T : Event> EventGroup.listen(priority: EventPriority = EventPriority.NORMAL, ignoreCancelled: Boolean = false, once: Boolean = false, delay: Long = 0, debounce: Long = 0, throttle: Long = 0, async: Boolean = false, crossinline scope: EventScope<T>.() -> Unit = {}, noinline filter: (T) -> Boolean = { true }, noinline block: (T) -> Unit)
Registers a listener for the specified event type T within the context of an EventGroup.
Link copied to clipboard
Unregisters all event handlers in the group.