ClassPlugin
PluginBuilder
This protocol defines the interface for a plugin builder. Normally, you don’t need to implement your own builder, since the
@Plugin
macro does that for you. However, if you need to implement your own builder, you can do so by implementing this protocol and passing it to the macro.class PluginBuilder
Topicsin page link
var associatedPlugin : (PluginInterface )?
The associated plugin instance.
func build()
Builds the plugin. This has to be overriden if you’re implementing your own builder.
func destroy()
Destroys the plugin.
func receive(event: String, data: Any?) async
Receives an event from the application.
func send(name: String, data: Any?)
Sends an event from the plugin to the application.
func storePlugin ((PluginInterface ))
Stores the plugin instance.
Current page is PluginBuilder