T
AddonHandle
A loaded plugin, theme or icon pack its manager governs: its manifest and state, and what its manager does to it. Stringifies to its AddonManifest.
type AddonHandle = { … }Members
readonly failed
booleanWhether the addon failed to start.
readonly id
stringThe manifest's id.
The loaded manifest, including what the loader and installer recorded.
readonly name
stringThe manifest's display name.
readonly started
booleanWhether the addon is running.
readonly version
stringThe manifest's version.
disable
(): voidAsks the addon's manager to disable it.
enable
(): void | Promise<void>Asks the addon's manager to enable it.
isEnabled
(): booleanWhether the user has the addon enabled, as its manager records it.
isPlugin
(): booleanWhether the plugin manager governs this addon.
reload
(): Promise<void>Restarts the addon on its current bundle if it is running; settles once it is running again.
Returns the manifest, so serializing the addon never leaks its bundle or instance.