Adds an event listener for a specific event.
The type of the event key.
An object with a remove method to unsubscribe the listener.
Registers an event listener handle to be managed by the plugin. Managed listeners will be automatically removed when the plugin is torn down.
The event listener handle to manage.
Called when the renderer is manually initialized. At this point, layer information is not yet available.
Tears down the plugin by removing all managed event listeners and clearing the event emitter. This method is called when the plugin is being destroyed.
The plugin context provided during teardown.
ProtectedisChecks if the plugin has been torn down.
true if the plugin has been torn down, otherwise false.
An event emitter for handling custom events.