associatedtype Builder : PluginBuilder
The associated plugin builder.
protocol PluginInterface
associatedtype Builder : PluginBuilder
Required
init(Self.Builder)
@Plugin
macro. It initializes the plugin with the builder.Required
var author: String
Required
var builder: Self.Builder?
@Plugin
macro. PluginBuilder
reference. WARNING: In the default implementation, this is an unowned reference. This means that ARC will assume the builder outlives the plugin. Therefore, if you forget to stop a task and it ends up consuming the builder when it has been deinitialized already, the whole application will crash.Required
var name: String
Required
var version: String
Required
func on(event: PluginLifecycleEvent )
Required
func on(event: String, data: Any?) async
Required
func send(name: String, data: Any?)
@Plugin
macro. It is used to send events to the application.Required