aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/window/vrdisplaydisconnect_event
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/window/vrdisplaydisconnect_event
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/window/vrdisplaydisconnect_event')
-rw-r--r--files/ja/web/api/window/vrdisplaydisconnect_event/index.html77
1 files changed, 77 insertions, 0 deletions
diff --git a/files/ja/web/api/window/vrdisplaydisconnect_event/index.html b/files/ja/web/api/window/vrdisplaydisconnect_event/index.html
new file mode 100644
index 0000000000..71281e5c3d
--- /dev/null
+++ b/files/ja/web/api/window/vrdisplaydisconnect_event/index.html
@@ -0,0 +1,77 @@
+---
+title: vrdisplaydisconnected
+slug: Web/API/Window/vrdisplaydisconnect_event
+translation_of: Web/API/Window/vrdisplaydisconnect_event
+---
+<div>{{APIRef}}{{SeeCompatTable}}</div>
+
+<div>
+<p><a href="/en-US/docs/Web/API/WebVR_API">WebVR API</a> の <strong><code>vrdisplaydisconnected</code></strong> イベントは,互換性のあるVRデバイスがコンピュータから接続解除された時に発火します.</p>
+</div>
+
+<table class="properties">
+ <tbody>
+ <tr>
+ <td>Bubbles</td>
+ <td>No</td>
+ </tr>
+ <tr>
+ <td>Cancelable</td>
+ <td>No</td>
+ </tr>
+ <tr>
+ <td>Target objects</td>
+ <td>{{domxref("Window")}}</td>
+ </tr>
+ <tr>
+ <td>Interface</td>
+ <td>{{domxref("Event")}}</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="例">例</h2>
+
+<p>You can use the <code>vrdisplaydisconnect</code> event in an <code><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener">addEventListener</a></code> method:</p>
+
+<pre class="brush: js">window.addEventListener('vrdisplaydisconnect', function() {
+  info.textContent = 'Display disconnected.';
+  reportDisplays();
+});</pre>
+
+<p>Or use the <code><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplaydisconnect">onvrdisplaydisconnect</a></code> event handler property:</p>
+
+<pre class="brush: js">window.onvrdisplaydisconnect = function() {
+ info.textContent = 'Display disconnected.';
+ reportDisplays();
+);</pre>
+
+<h2 id="仕様">仕様</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('WebVR 1.1', '#dom-window-onvrdisplaydisconnected', 'vrdisplaydisconnected')}}</td>
+ <td>{{Spec2('WebVR 1.1')}}</td>
+ <td>Initial definition</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="ブラウザの互換性">ブラウザの互換性</h2>
+
+
+
+<p>{{Compat("api.Window.vrdisplaydisconnect_event")}}</p>
+
+<h2 id="参照">参照</h2>
+
+<ul>
+ <li><a href="/en-US/docs/Web/API/WebVR_API">WebVR API homepage</a>.</li>
+ <li><a href="http://mozvr.com/">MozVr.com</a> — Mozilla VRチームのデモ,ダウンロード,その他のリソース.</li>
+</ul>