aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/navigator/activevrdisplays
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/navigator/activevrdisplays
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/navigator/activevrdisplays')
-rw-r--r--files/ja/web/api/navigator/activevrdisplays/index.html67
1 files changed, 67 insertions, 0 deletions
diff --git a/files/ja/web/api/navigator/activevrdisplays/index.html b/files/ja/web/api/navigator/activevrdisplays/index.html
new file mode 100644
index 0000000000..bedccb5eb0
--- /dev/null
+++ b/files/ja/web/api/navigator/activevrdisplays/index.html
@@ -0,0 +1,67 @@
+---
+title: Navigator.activeVRDisplays
+slug: Web/API/Navigator/activeVRDisplays
+tags:
+ - API
+ - Experimental
+ - HTML DOM
+ - Navigator
+ - Property
+ - Reference
+ - VR
+ - Virtual Reality
+ - WebVR
+ - activeVRDisplays
+translation_of: Web/API/Navigator/activeVRDisplays
+---
+<div>{{DefaultAPISidebar("WebVR API")}}{{Obsolete_header}}</div>
+
+<p><strong><code>activeVRDisplays</code></strong> は {{domxref("Navigator")}} インターフェイスの読み取り専用プロパティで、現在表示中 ({{domxref("VRDisplay.ispresenting")}} が <code>true</code>) のすべての {{domxref("VRDisplay")}} オブジェクトを含んだ配列を返します。</p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox notranslate">var myActiveDisplays = navigator.activeVRDisplays;</pre>
+
+<h3 id="Value" name="Value">値</h3>
+
+<p>{{domxref("VRDisplay")}} オブジェクトの配列です。</p>
+
+<h2 id="Examples" name="Examples">例</h2>
+
+<pre class="brush: js notranslate">function showActive() {
+ var displays = navigator.activeVRDisplays;
+ for(var i = 0; i &lt; displays.length; i++) {
+ console.log('Display ' + displays[i].displayId + ' is active.');
+ }
+}
+</pre>
+
+<h2 id="Specifications" name="Specifications">仕様書</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">仕様書</th>
+ <th scope="col">状態</th>
+ <th scope="col">備考</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName("WebVR 1.1", '#navigator-activevrdisplays-attribute', 'activeVRDisplays')}}</td>
+ <td>{{Spec2("WebVR 1.1")}}</td>
+ <td>初回定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+
+<p>{{Compat("api.Navigator.activeVRDisplays")}}</p>
+
+<h2 id="参照">参照</h2>
+
+<ul>
+ <li><a href="/ja/docs/Web/API/WebVR_API">WebVR API ホームページ</a></li>
+ <li><a href="http://mozvr.com/">MozVr.com</a> — Mozilla VR チームのデモ、ダウンロード、その他のリソース</li>
+</ul>