Addons (API V3)
It is possible to list, load and be notified of new Addons having been installed for your Plasmoid.
- Array[AddonInformation] listAddons(string type): an array of available addons of the provided type. The type name maps to the X-KDE-PluginInfo-Category entry in the Addon's metadata.desktop file.
- boolean loadAddon(String type, String id): load the addon with the given id and type, return true on success. In order to be notified when the addon is successfully created, add an event listener to the "addCreated" event.
The following are the Addon events which are recognized by the Plasmoid along with the type of event objects (if any) that are passed to registered event listeners that are registered with addEventListener:
- addonCreated: Object addOn
AddonInformation (API V3)
The AddonInformation object contains the following read-only properties:
- String id: the id of the Addon. Can be used with loadAddon
- String name: a string suitable for showing the user, such as in a configuration dialog
This page was last modified on 11 September 2014, at 23:27. This page has been accessed 2,057 times. Content is available under Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2.