alarms.getAll()
Obtient toutes les alarmes actives pour le poste.
C'est une fonction asynchrone qui renvoie une Promise
.
Syntaxe
js
var getAlarms = browser.alarms.getAll();
Paramètres
Aucun
Valeur de retour
Exemples
js
function gotAll(alarms) {
for (var alarm of alarms) {
console.log(alarm.name);
}
}
var getAlarms = browser.alarms.getAll();
getAlarms.then(gotAll);
Compatibilité des navigateurs
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
getAll |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Note :
Cette API est basée sur l'API Chromium chrome.alarms
.
Les données de compatibilité relatives à Microsoft Edge sont fournies par Microsoft Corporation et incluses ici sous la licence Creative Commons Attribution 3.0 pour les États-Unis.