diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/window/ondeviceproximity | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/ja/web/api/window/ondeviceproximity')
-rw-r--r-- | files/ja/web/api/window/ondeviceproximity/index.html | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/files/ja/web/api/window/ondeviceproximity/index.html b/files/ja/web/api/window/ondeviceproximity/index.html new file mode 100644 index 0000000000..48551acc69 --- /dev/null +++ b/files/ja/web/api/window/ondeviceproximity/index.html @@ -0,0 +1,101 @@ +--- +title: Window.ondeviceproximity +slug: Web/API/Window/ondeviceproximity +tags: + - API + - Event Handler + - Experimental + - Property + - Proximitiy Event + - Reference + - Window +translation_of: Web/API/Window/ondeviceproximity +--- +<p>{{ ApiRef() }}</p> + +<p>{{event("deviceproximity")}} イベントを受け取るイベントリスナーを指定します。これらのイベントは、デバイスセンサーが、物がデバイスに近づいたこと、または離れたことを検知したときに発生します。</p> + +<h2 id="構文">構文</h2> + +<pre>window.onuserproximity = <em>funcRef</em></pre> + +<p><code><em>funcRef</em></code> は、{{event("deviceproximity")}} イベントが発生したときに呼び出される関数です。これらは {{domxref("DeviceProximityEvent")}} 型のイベントです。</p> + +<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('Proximity Events', '#device-proximity', 'Proximity Events') }}</td> + <td>{{ Spec2('Proximity Events') }}</td> + <td>初期定義。</td> + </tr> + </tbody> +</table> + +<h2 id="ブラウザー実装状況">ブラウザー実装状況</h2> + +<p>{{ CompatibilityTable() }}</p> + +<div id="compat-desktop"> +<table class="compat-table"> + <tbody> + <tr> + <th>機能</th> + <th>Chrome</th> + <th>Firefox (Gecko)</th> + <th>Internet Explorer</th> + <th>Opera</th> + <th>Safari</th> + </tr> + <tr> + <td>基本サポート</td> + <td>{{ CompatNo() }}</td> + <td>{{ CompatVersionUnknown() }}</td> + <td>{{ CompatNo() }}</td> + <td>{{ CompatNo() }}</td> + <td>{{ CompatNo() }}</td> + </tr> + </tbody> +</table> +</div> + +<div id="compat-mobile"> +<table class="compat-table"> + <tbody> + <tr> + <th>機能</th> + <th>Android</th> + <th>Chrome for Android</th> + <th>Firefox Mobile (Gecko)</th> + <th>IE Mobile</th> + <th>Opera Mobile</th> + <th>Safari Mobile</th> + </tr> + <tr> + <td>基本サポート</td> + <td>{{ CompatNo() }}</td> + <td>{{ CompatNo() }}</td> + <td>{{ CompatGeckoMobile("15.0") }}</td> + <td>{{ CompatNo() }}</td> + <td>{{ CompatNo() }}</td> + <td>{{ CompatNo() }}</td> + </tr> + </tbody> +</table> +</div> + +<h2 id="関連項目">関連項目</h2> + +<ul> + <li>{{event("deviceproximity")}}</li> + <li>{{domxref("DeviceProximityEvent")}}</li> + <li><a href="/ja/docs/WebAPI/Proximity" title="/ja/docs/WebAPI/Proximity">Proximity API</a></li> +</ul> |