SensorErrorEvent: SensorErrorEvent() コンストラクター
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
SensorErrorEvent コンストラクターは、Sensor をベースとする各インターフェイスから投げられたエラーに関する情報を提供する新しい SensorErrorEvent オブジェクトを生成します。
構文
js
new SensorErrorEvent(type, options)
引数
type-
イベントの名前を表す文字列です。 大文字と小文字は区別され、ブラウザーは常に
errorに設定します。 options-
Event()で定義されているプロパティに加え、以下のプロパティを持ちうるオブジェクトです。error-
エラーの内容を表す
DOMExceptionオブジェクトです。
返値
新しい SensorErrorEvent オブジェクトです。
仕様書
| Specification |
|---|
| Generic Sensor API> # dom-sensorerrorevent-sensorerrorevent> |
ブラウザーの互換性
Loading…