Extension Manager:API Rewrite:API: Difference between revisions

Line 377: Line 377:
==onDownloadStarted==
==onDownloadStarted==


Called when downloading begins for an add-on install. Only called for add-ons that need to be downloaded.
Called when downloading begins for an add-on install. Only called for add-ons that need to be downloaded. A listener may return <code>false</code> to cancel the download.
 
;install :The [[#AddonInstall|AddonInstall]] representing the install
 
==onDownloadProgress==
 
Called as data is received during a download. Check the [[#AddonInstall|AddonInstall's]] progress property for the amount of data downloaded and the maxProgress property for the total data expected. A listener may return <code>false</code> to cancel the download.


;install :The [[#AddonInstall|AddonInstall]] representing the install
;install :The [[#AddonInstall|AddonInstall]] representing the install
Line 383: Line 389:
==onDownloadEnded==
==onDownloadEnded==


Called when downloading ends for an add-on install. Only called for add-ons that need to be downloaded.
Called when downloading completes successfully for an add-on install. Only called for add-ons that need to be downloaded.
 
;install :The [[#AddonInstall|AddonInstall]] representing the install
 
==onDownloadCancelled==
 
Called when downloading is cancelled. Only called for add-ons that need to be downloaded.


;install :The [[#AddonInstall|AddonInstall]] representing the install
;install :The [[#AddonInstall|AddonInstall]] representing the install
Line 396: Line 408:
==onInstallStarted==
==onInstallStarted==


Called when installation of an add-on begins.
Called when installation of an add-on begins. A listener may return <code>false</code> to cancel the install.


;install :The [[#AddonInstall|AddonInstall]] representing the install
;install :The [[#AddonInstall|AddonInstall]] representing the install
Line 406: Line 418:
;install :The [[#AddonInstall|AddonInstall]] representing the install
;install :The [[#AddonInstall|AddonInstall]] representing the install
;addon :The newly installed [[#Addon|Addon]]
;addon :The newly installed [[#Addon|Addon]]
==onInstallCancelled==
Called when installation is cancelled.
;install :The [[#AddonInstall|AddonInstall]] representing the install


==onInstallFailed==
==onInstallFailed==
canmove, Confirmed users
1,570

edits