草案
このページは完成していません。
NotificationEvent()
コンストラクターは、新しい NotificationEvent
オブジェクトを生成します。
構文
var myNotificationEvent = new NotificationEvent(type, NotificationEventInit);
引数
type
- TBD
NotificationEventInit
Optional- イベントが配信される通知として使用される
Notification
オブジェクトを含む辞書オブジェクト。この仕様書の後の草稿では、このパラメータはオプションではありません。
例
var n = new Notification('Hello');
var init = { notification: n };
var myNotificationEvent = new NotificationEvent(type, init);
仕様書
仕様書 | 状態 | 備考 |
---|---|---|
Notifications API NotificationEvent() constructor の定義 |
現行の標準 | Living standard |
ブラウザーの互換性
BCD tables only load in the browser
このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 https://github.com/mdn/browser-compat-data をチェックアウトしてプルリクエストを送信してください。