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

The manifest's authors.

Whether the addon failed to start.

The manifest's id.

The loaded manifest, including what the loader and installer recorded.

The manifest's display name.

Whether the addon is running.

The manifest's version.

disable(): void

Asks the addon's manager to disable it.

enable(): void | Promise<void>

Asks the addon's manager to enable it.

isEnabled(): boolean

Whether the user has the addon enabled, as its manager records it.

isPlugin(): boolean

Whether 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.