public class EventSupport:
Native support used by EventDispatcher<T> and compiler-generated +=, -= and emit calls.
User code should normally declare events with the event keyword.
dispatcher = EventDispatcher<Event>() EventSupport.connectRaw(dispatcher, lambda(e: Event): print(e.source))
| Modifier and Type | Member | Description |
|---|---|---|
| public static native | connectRaw | Adds a handler to an event dispatcher. |
| public static native | disconnectRaw | Removes a handler from an event dispatcher. |
| public static native | emitRaw | Emits an event payload to all handlers registered on a dispatcher. |
| public static native | invokeCallback | Invokes a callback with an event payload. |