Create a listener with native event and optional lifecycle callbacks.
processHandle a scoped native event.
attachOptionalReceive native attachment notifications.
detachOptionalReceive native detachment notifications.
Deliver the native OnAttach notification without registering an event.
elementLive element whose identity is copied.
Deliver the native OnDetach notification without unregistering an event.
elementLive element whose identity is copied.
Invoke native processing on a live event without dispatching it.
eventLive owned event or active dispatch lease.
Destroy a detached, inactive native listener and expire its handle.
Native Rml::EventListener supporting multiple dispatcher attachments.
Remarks
Pass the same listener to Element.addEventListener/removeEventListener. Attach/detach hooks run once per actual native registration at the outer boundary, using copied identities so destruction never exposes dying elements. Detached element/callback cycles are collectible. Shutdown invalidates every listener. Manual hook methods deliver notifications; actual registration always uses Element's dispatcher operations.