HostEventListener

fun interface HostEventListener : Consumer<Any?> , EventListener, ProxyExecutable

Node API: Host Event Listener

Describes a host-implemented event listener, which functions as a Consumer of Event instances, within the context of a given EventListener.

Host-side event listeners are additionally ProxyExecutable, allowing dispatch from guest languages.

See also

for a guest-side equivalent.

Types

Link copied to clipboard
object Companion

Factory utilities for host-side event listeners.

Functions

Link copied to clipboard
open override fun accept(event: Any?)
Link copied to clipboard
open fun andThen(p0: Consumer<in Any?>): Consumer<Any?>
Link copied to clipboard
open override fun execute(vararg arguments: Value): Any?
Link copied to clipboard
abstract fun handleEvent(vararg event: Any?)

Handle an event's occurrence and dispatch against a given EventTarget.