Extension Manager:API Rewrite:API: Difference between revisions

Line 9: Line 9:
;url :The URL to install the add-on from
;url :The URL to install the add-on from
;callback :A function to pass an [[#AddonInstall|AddonInstall]] to when created
;callback :A function to pass an [[#AddonInstall|AddonInstall]] to when created
;mimetype :The mimetype of the add-on to be downloaded (optional)
;mimetype :The mimetype of the add-on to be downloaded. If not provided the mimetype given by the server or file based detection will be used. (optional)
;hash :A hash of the file to be downloaded (optional)
;hash :A hash of the file to be downloaded (optional)
;name :A human readable name for the add-on to be displayed during install (optional)
;name :A human readable name for the add-on to be displayed during install (optional)
Line 16: Line 16:
==getInstallForFile==
==getInstallForFile==


Creates a new object reperesenting an add-on installation from a local file, properties for the install will be loaded out of the file. Operates asynchronously.
Creates a new object representing an add-on installation from a local file, properties for the install will be loaded out of the file. Operates asynchronously.


;file :A <code>nsIFile</code> to install the add-on from
;file :A <code>nsIFile</code> to install the add-on from
;callback :A function that will be passed the [[#AddonInstall|AddonInstall]] for the installation
;callback :A function that will be passed the [[#AddonInstall|AddonInstall]] for the installation
;mimetype :The mimetype of the add-on to be downloaded. If not provided file based detection will be used. (optional)


==getInstalls==
==getInstalls==
canmove, Confirmed users
1,570

edits