canmove, Confirmed users
1,570
edits
| Line 24: | Line 24: | ||
;mimetype :The mimetype of the add-on to be downloaded. If not provided file based detection will be used. (optional) | ;mimetype :The mimetype of the add-on to be downloaded. If not provided file based detection will be used. (optional) | ||
== | ==getAllInstalls== | ||
Returns the list of known add-on installs. This method operates asynchronously. | |||
;callback :A function that will be passed an array of [[#AddonInstall|AddonInstalls]] | |||
==getInstallsByTypes== | |||
Returns the list of known add-on installs optionally restricting to a set of types of add-ons. This method operates asynchronously. | Returns the list of known add-on installs optionally restricting to a set of types of add-ons. This method operates asynchronously. | ||
| Line 52: | Line 58: | ||
;listener :An [[#InstallListener|InstallListener]] | ;listener :An [[#InstallListener|InstallListener]] | ||
== | ==getAllAddonsBy== | ||
Gets all the installed add-ons. This method operates asynchronously. | |||
;callback :A function that will be passed an array [[#Addon|Addons]] | |||
==getAddonByID== | |||
Gets an installed add-on. This method operates asynchronously. | Gets an installed add-on. This method operates asynchronously. | ||
| Line 58: | Line 70: | ||
;id :The ID of the add-on to retrieve | ;id :The ID of the add-on to retrieve | ||
;callback :A function that will be passed an [[#Addon|Addon]] representing the add-on or null if there is no installed add-on with the given ID | ;callback :A function that will be passed an [[#Addon|Addon]] representing the add-on or null if there is no installed add-on with the given ID | ||
==getAddonsByIDs== | |||
Gets an array installed add-ons with specific IDs. This method operates asynchronously. | |||
;ids :An array of IDs of the add-ons to retrieve | |||
;callback :A function that will be passed an array [[#Addon|Addons]] in the same order as the ids array | |||
==getAddonsByTypes== | ==getAddonsByTypes== | ||
| Line 66: | Line 85: | ||
;callback :A function that will be passed an array of [[#Addon|Addons]] representing the installed add-ons | ;callback :A function that will be passed an array of [[#Addon|Addons]] representing the installed add-ons | ||
== | ==getAddonsWithOperationsByTypes== | ||
Gets an array of add-ons that currently have pending operations requiring an application restart to complete. This method operates asynchronously. | Gets an array of add-ons that currently have pending operations requiring an application restart to complete. This method operates asynchronously. | ||