DOMApplicationsManager.setEnabled()

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.

The setEnabled() method of the DOMApplicationsManager interface sets an application to be enabled or disabled.

Syntax

window.navigator.mozApps.mgmt.setEnabled(app,state)

Parameters

app
A DOMApplication object representing the app you want to set enabled state for.
state
A Boolean value that sets the enabled state of an installed app — can be enabled or disabled. enabled is the default state.

Return value

Void.

Specifications

Not currently part of an official specification.

Browser compatibility

Supported in Firefox OS 2.2.

See also

Document Tags and Contributors

Contributors to this page: wbamberg, fscholz, chrisdavidmills
Last updated by: wbamberg,