AddonManager

interface AddonManager

Manages Plasmo Voice addons.

Functions

Link copied to clipboard
abstract fun getAddon(@NotNull instance: @NotNull Any): Optional<AddonContainer>
Gets an AddonContainer associated with the instance of an addon.
abstract fun getAddon(@NotNull id: @NotNull String): Optional<AddonContainer>
Gets an AddonContainer associated with the addon id.
Link copied to clipboard
abstract fun isLoaded(@NotNull id: @NotNull String): Boolean
Checks if an addon with the specified ID is currently loaded.
Link copied to clipboard
abstract fun load(@NotNull addonObject: @NotNull Any)
Loads an addon specified by its annotated object.
Link copied to clipboard
abstract fun unload(@NotNull addonObject: @NotNull Any)
Unloads a previously loaded addon specified by its annotated object.