canmove, Confirmed users
1,570
edits
(→Addon) |
|||
| Line 380: | Line 380: | ||
=UpdateListener= | =UpdateListener= | ||
Notification about events during an update check for an add-on are passed to an update listener. <code>onUpdateFinished</code> will always be called. | Notification about events during an update check for an add-on are passed to an update listener. For a single update check: | ||
* <code>onCompatibilityUpdated</code> might be called once. | |||
* Either <code>onUpdateAvailable</code> or <code>onNoUpdateAvailable</code> will be called once. | |||
* <code>onUpdateFinished</code> will always be called last. | |||
==onCompatibilityUpdated== | ==onCompatibilityUpdated== | ||
| Line 391: | Line 395: | ||
Called when a new version of an add-on has been found for install. | Called when a new version of an add-on has been found for install. | ||
;addon :The [[#Addon|Addon]] that was being checked for updates | |||
;install :An [[#AddonInstall|AddonInstall]] for the updated version | |||
==onNoUpdateAvailable== | |||
Called when no new version of an add-on has been found for install. | |||
;addon :The [[#Addon|Addon]] that was being checked for updates | ;addon :The [[#Addon|Addon]] that was being checked for updates | ||