Skip to content

struct Athena::EventDispatcher::Callable::EventListenerInstance(I, E)
inherits Athena::EventDispatcher::Callable #

Represents a listener associated with an AED::EventListenerInterface when using the AEDA::AsEventListener annotation.


.new(callback : Proc(E, Nil) | Proc(E, AED::EventDispatcherInterface, Nil), instance : I, priority : Int32 = 0, name : String | Nil = nil, event_class : E.class = E)#

View source


#instance : I#

Returns the AED::EventListenerInterface instance this listener is associated with.

View source