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

JavaScript
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

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support ? 36.0 ? ? ?
Feature Android Firefox Mobile (Gecko) Firefox OS (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support No support 36.0 2.2 No support No support No support

See also

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/domapplicationsmanager/setenabled

API B2G DomApplicationsManager DOMApplicationsManager Firefox OS Method Non-standard Reference setEnabled