alarms.clear()
与えた名前に対応するアラームを解除します。
構文
js
browser.alarms.clear(
name, // 文字列
function(wasCleared) {...} // 関数
)
引数
name
省略可-
string
. 解除したいアラームの名前を指定します。指定しなかった場合は空文字列 "" が用いられます。 callback
省略可-
function
. この関数には以下の引数が渡されます。wasCleared
-
boolean
. アラームが解除された場合はtrue
が、それ以外の場合はfalse
が入ります。
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
clear |
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.
メモ:
この API は Chromium の chrome.alarms
API に基づいています。