Inject Plasmo Voice
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
}
Content copied to clipboard
java:
class MyAddon {
@InjectPlasmoVoice
private final PlasmoVoiceServer voiceServer;
}
Content copied to clipboard
The PlasmoVoice instance will be automatically injected into the annotated field when the addon is initialized.