EventListener.callCancellableIfExists

Calls a cancellable event using callEventIfExists.

class EventListener(O : Event, Children...)
bool
callCancellableIfExists
(
T : O
)
(
lazy Parameters!(T.__ctor) args
)
if (
is(T == class) &&
!isAbstractClass!T
&&
)
if (
areValidChildren!(O, Children)
)

Return Value

Type: bool

true if the event has been called and cancelled, false otherwise

Meta