InjectPlasmoVoice

@Target(allowedTargets = [AnnotationTarget.FIELD])
annotation class InjectPlasmoVoice

This annotation is used by addons to request injection of the PlasmoVoiceServer, PlasmoVoiceProxy or PlasmoVoiceClient instance.

Example usage:

kotlin:

class MyAddon {
@InjectPlasmoVoice
lateinit var voiceServer: PlasmoVoiceServer
}

java:

class MyAddon {
@InjectPlasmoVoice
private final PlasmoVoiceServer voiceServer;
}

The PlasmoVoice instance will be automatically injected into the annotated field when the addon is initialized.