Factory

Creates new instances of EventListener.

A new EventListener will be created for each code load attempt: there may be multiple instances for a single TreehouseApp due to hot reloading.

This factory will be closed when the TreehouseApp it belongs to is closed.

Functions

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
abstract fun create(app: TreehouseApp<*>, manifestUrl: String?): EventListener

Returns an event listener that receives the events of a specific code session. Each code session includes a single Zipline instance, unless code loading fails, in which case there will be no Zipline instance.