DOMApplicationsManager.getAll()
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 getAll()
method of the DOMApplicationsManager
interface lists all installed apps in the user's repository.
Syntax
window.navigator.mozApps.mgmt.getAll()
Parameters
None.
Return value
getAll()
returns a pendingGetAll
object. Callers are expected to set the onsuccess
and onerror
callback properties of the returned object.
pendingGetAll.result
will be an array of App
objects that contains all the apps installed in the current browser. pendingGetAll.result
will be the empty list if no apps are installed. onerror
will be called if a serious problem occurs while checking this.
This is a privileged call. navigator.mozApps.mgmt
will be null
if you do not have the privilege to query apps.
Errors
The following error can be returned in DOMRequest.error
.
- DENIED
- Permission denied.
Related topics
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/getall