canmove, Confirmed users
1,570
edits
No edit summary |
No edit summary |
||
| Line 236: | Line 236: | ||
=AddonListener= | =AddonListener= | ||
AddonListeners are notified about changes to the state of add-ons. Certain state changes may not take effect until the next application restart. | |||
==onEnabled== | |||
Called when an add-on is enabled. | |||
;addon :The [[#Addon|Addon]] that has been enabled | |||
;needsRestart :True if an application restart is necessary for the change to take effect | |||
==onDisabled== | |||
Called when an add-on is disabled. | |||
;addon :The [[#Addon|Addon]] that has been disabled | |||
;needsRestart :True if an application restart is necessary for the change to take effect | |||
==onInstalled== | |||
Called when a new add-on has been installed. | |||
'''TODO''' Add an event specifically for upgrades. | |||
;addon :The [[#Addon|Addon]] that has been installed | |||
;needsRestart :True if an application restart is necessary for the change to take effect | |||
==onUninstalled== | |||
Called when an add-on is uninstalled. | |||
;addon :The [[#Addon|Addon]] that has been uninstalled | |||
;needsRestart :True if an application restart is necessary for the change to take effect | |||
==onOperationCancelled== | |||
Called when a pending operation for an add-on is cancelled. | |||
;addon :The [[#Addon|Addon]] that has had a pending operation cancelled | |||
=UpdateListener= | =UpdateListener= | ||