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.
Constructors#
.new(callback : Proc(E, Nil) | Proc(E, AED::EventDispatcherInterface, Nil), instance : I, priority : Int32 = 0, name : String | Nil = nil, event_class : E.class = E)
#
Methods#
#instance : I
#
Returns the AED::EventListenerInterface
instance this listener is associated with.