To tłumaczenie jest niekompletne. Pomóż przetłumaczyć ten artykuł z języka angielskiego.
Niestandardowy
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
Summary
Lists all installed apps in the user's repository.
Syntax
window.navigator.mozApps.mgmt.getAll()
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