EventTemplates

A singleton object that manages event templates.

This object allows you to register and retrieve event templates that can be used to define common event filters or behaviors for various event types. Templates are stored by a unique name and can be reused across different event scopes.

Functions

Link copied to clipboard
fun <T : Event> get(name: String): EventScope<T>.() -> Unit?

Retrieves an event template by name.

Link copied to clipboard
fun <T : Event> register(name: String, template: EventScope<T>.() -> Unit)

Registers a new event template with the specified name.