diff options
Diffstat (limited to 'files/pl/web/api/domapplicationsmanager/getall/index.html')
| -rw-r--r-- | files/pl/web/api/domapplicationsmanager/getall/index.html | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/files/pl/web/api/domapplicationsmanager/getall/index.html b/files/pl/web/api/domapplicationsmanager/getall/index.html new file mode 100644 index 0000000000..272c82b938 --- /dev/null +++ b/files/pl/web/api/domapplicationsmanager/getall/index.html @@ -0,0 +1,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> |
