aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/window/ondevicelight/index.html
blob: e0a19b3ccb247a33d49ae853effe36c2de526668 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
title: window.ondevicelight
slug: Web/API/Window/ondevicelight
tags:
  - Ambient Light
  - B2G
  - Firefox OS
  - WebAPI
  - Window
translation_of: Web/API/Window/ondevicelight
---
<p>{{ApiRef}} {{obsolete_header}} </p>

<p>デバイスの環境光センサが光の強度の変化を検出した際に発生する {{event("devicelight")}} イベントを受け取るイベントリスナーを指定します。</p>

<h2 id="Syntax" name="Syntax">構文</h2>

<pre class="syntaxbox">window.ondevicelight = <var>funcRef</var></pre>

<ul>
 <li><code><var>funcRef</var></code> : {{event("devicelight")}} イベント発生時に呼び出す関数への参照。 このイベントは {{domxref("DeviceLightEvent")}} のひとつです。</li>
</ul>

<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('AmbientLight', '#event-handlers', 'Ambient Light Events')}}</td>
   <td>{{Spec2('AmbientLight')}}</td>
   <td>最初期の定義</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザ実装状況</h2>

<div>


<p>{{Compat("api.Window.ondevicelight")}}</p>
</div>

<h2 id="See_also" name="See_also">関連情報</h2>

<ul>
 <li>{{event("devicelight")}}</li>
 <li>{{domxref("DeviceLightEvent")}}</li>
 <li><a href="/ja/docs/WebAPI/Using_Light_Events">環境光イベントの利用</a></li>
</ul>