AddonInstall instance tracks download and installation process of an add-on. Instances can be created using the
getInstallForURL() methods on the
AddonManager. Once you have an instance the
install() method is used to start automatic download and installation. This can be canceled at any time with the
void addListener(in InstallListener listener)
void removeListener(in InstallListener listener)
Attribute Type Description
The name of the add-on being installed.
The version of the add-on being installed.
The icon of the add-on being installed.
The URI of release notes for this install.
The type of the add-on being installed.
The state of the installation.
If an error has been encountered during the download or install this will hold the error code.
The URI that the add-on is being installed from.
The file that the add-on is being installed from. This may be null if the add-on is coming from the Internet and has yet to be downloaded.
The progress of any necessary downloads.
The expected size of any necessary downloads or -1 if unknown.
If the add-on to be installed is signed this is the certificate of the signer. Only available after downloading is complete.
If the add-on to be installed is signed this is the simple display name of the signer.
Addonthat this install will update. May be null if it isn't updating anything installed. This is guaranteed to be correct after downloading is complete but may be set earlier.
Addonthat this install will install. Only available after downloading is complete.
Starts or continues the install process. The process will continue in the background until it fails, completes, one of the registered
InstallListeners pauses it, or the process is canceled by a call to the
cancel()method.void install( )
Cancels the install process, it cannot be restarted after this.void cancel( )
Adds a new
InstallListenerif the listener is not already registered to monitor this specific
AddonInstall.void addListener( in
InstallListenerif the listener is registered for monitoring this specific
AddonInstall.void removeListener( in