WebVR API の vrdisplaydisconnected
イベントは,互換性のあるVRデバイスがコンピュータから接続解除された時に発火します.
Bubbles | No |
Cancelable | No |
Target objects | Window |
Interface | Event |
例
You can use the vrdisplaydisconnect
event in an addEventListener
method:
window.addEventListener('vrdisplaydisconnect', function() {
info.textContent = 'Display disconnected.';
reportDisplays();
});
Or use the onvrdisplaydisconnect
event handler property:
window.onvrdisplaydisconnect = function() {
info.textContent = 'Display disconnected.';
reportDisplays();
);
仕様
Specification | Status | Comment |
---|---|---|
WebVR 1.1 vrdisplaydisconnected の定義 |
ドラフト | Initial definition |
ブラウザの互換性
BCD tables only load in the browser
参照
- WebVR API homepage.
- MozVr.com — Mozilla VRチームのデモ,ダウンロード,その他のリソース.