CallbackRegistration

class CallbackRegistration<T : Any>(var callbackGroup: Any, var eventType: EventType<T>, var callback: EventCallback<T>)

Represents a registration of a callback for a specific event type. This class encapsulates the information needed to register and subscribe a callback. Callbacks are grouped for easier management, such as unregistering multiple related callbacks at once.

Parameters

T

The type of event data.

Constructors

Link copied to clipboard
constructor(callbackGroup: Any, eventType: EventType<T>, callback: EventCallback<T>)

Properties

Link copied to clipboard

The block of code that will be executed when an event of the specified eventType is handled.

Link copied to clipboard

An identifier used to group related callbacks.

Link copied to clipboard

The specific type of event to subscribe to.