注:
この機能は Web Worker 内で利用可能です。安全なコンテキスト用
この機能は一部またはすべての対応しているブラウザーにおいて、安全なコンテキスト (HTTPS) でのみ利用できます。
renotify
は Notification
インターフェイスの読取専用プロパティで、 Notification()
コンストラクターの renotify
オプションで指定され、新しい通知が古い通知を置き換えたときにユーザーに通知されるかどうかを指定します。
構文
var renotify = Notification.renotify;
値
Boolean
です。 false
が既定値です。 true
で通知を静かに行います。
例
次のスニペットは静かな通知を発行するためのものです。単純な options
オブジェクトが生成され、通知が Notification()
コンストラクターを使用して発行されます。
var options = {
body: 'Do you like my body?',
renotify: true
}
var n = new Notification('Test notification',options);
console.log(n.renotify) // should log true
仕様書
仕様書 | 状態 | 備考 |
---|---|---|
Notifications API renotify の定義 |
現行の標準 | Living standard |
ブラウザーの互換性
BCD tables only load in the browser