aboutsummaryrefslogtreecommitdiff
path: root/files/pl/web/api/domapplicationsmanager/getall/index.html
blob: 272c82b93815c0f8f8f98d4efdaa09ea02e2b0cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
title: DOMApplicationsManager.getAll()
slug: Web/API/DomApplicationsManager/getAll
translation_of: Archive/Marketplace/API/DOMApplicationsManager/getAll
---
<p><span style="display: none;"> </span> </p>

<pre>{{ ApiRef("Apps") }}</pre>

<p>{{ non-standard_header() }}</p>

<h2 id="Summary">Summary</h2>

<p>Lists all installed apps in the user's repository.</p>

<h2 id="Syntax">Syntax</h2>

<pre>window.navigator.mozApps.mgmt.getAll()
</pre>

<h3 id="Return_value">Return value</h3>

<p><code>getAll()</code> returns a <code>pendingGetAll</code> object. Callers are expected to set the <code>onsuccess</code> and <code>onerror</code> callback properties of the returned object.</p>

<p><code>pendingGetAll.result</code> will be an array of <code>App</code> objects that contains all the apps installed in the current browser. <code>pendingGetAll.result</code> will be the empty list if no apps are installed. <code>onerror</code> will be called if a serious problem occurs while checking this.</p>

<p>This is a privileged call. <code>navigator.mozApps.mgmt</code> will be <code>null</code> if you do not have the privilege to query apps.</p>

<h3 id="Errors">Errors</h3>

<p>The following error can be returned in <code>DOMRequest.error</code>.</p>

<dl>
</dl>

<dl>
 <dt>DENIED</dt>
 <dd>Permission denied.</dd>
</dl>

<h2 id="Related_topics">Related topics</h2>

<ul>
 <li><a href="/en-US/docs/Web/Apps/JavaScript_API">Apps JavaScript API</a></li>
</ul>

<p><span style="display: none;"> </span> </p>