Marketplace feature removal
The functionality described on this page no longer works — Firefox Marketplace has discontinued support for Android, Desktop, Tablets, and payments (and other related functionality). For more information, read the
Future of Marketplace FAQ
.
Provides support for managing and installing Open Web apps in a browser. A manager can be accessed via
Navigator.mozApps.mgmt
DOMApplicationsManager.oninstall
EventManager
call when
安装
event is received.
DOMApplicationsManager.onuninstall
EventManager
call when
uninstall
event is received.
DOMApplicationsManager.onenabledstatechange
enabledstatechange
event; this is received when an app is enabled or disabled using
DOMApplicationsManager.setEnabled()
.
DOMApplicationsManager.getAll()
Returns all applications.
DOMApplicationsManager.setEnabled()
Sets an application to be enabled or disabled.
DOMApplicationsManager.clearWatch()
Removes a watch callback function. After this function is called, the specified watch callback is no longer called.
DOMApplicationsManager.list()
Lists all installed apps in the user's repository.
DOMApplicationsManager.uninstall()
Uninstalls an app from the user's repository.
DOMApplicationsManager.watchUpdates()
Sets up a callback function to be called whenever an app is installed or removed from the repository.
Not currently part of an official specification.
Supported in Firefox OS 1.0.1.
onstatechange
,
setEnabled()
supported in Firefox OS 2.2.
Archive