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
Defines an event handler for the 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.

元数据

  • 最后修改: