|
1219 | 1219 | background-attachment: fixed;
|
1220 | 1220 | }
|
1221 | 1221 | </style>
|
1222 |
| - <meta content="Bikeshed version 220086d88511a9c99d7a1f9b5447db7e7b99e053" name="generator"> |
| 1222 | + <meta content="Bikeshed version e86d5b1b47a216fa66165c234892adc259212183" name="generator"> |
1223 | 1223 | <link href="http://www.w3.org/TR/ambient-light/" rel="canonical">
|
1224 | 1224 | <meta content="0f497614977f698e9314ac3d33fe305024d33cf3" name="document-revision">
|
1225 | 1225 | <style>/* style-md-lists */
|
|
1479 | 1479 | <div class="head">
|
1480 | 1480 | <p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2016/logos/W3C" width="72"> </a> </p>
|
1481 | 1481 | <h1 class="p-name no-ref" id="title">Ambient Light Sensor</h1>
|
1482 |
| - <h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2019-08-21">21 August 2019</time></span></h2> |
| 1482 | + <h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2019-09-24">24 September 2019</time></span></h2> |
1483 | 1483 | <div data-fill-with="spec-metadata">
|
1484 | 1484 | <dl>
|
1485 | 1485 | <dt>This version:
|
@@ -1718,8 +1718,9 @@ <h2 class="heading settled" data-level="4" id="model"><span class="secno">4. </s
|
1718 | 1718 | due to differences in detection method, sensor construction, etc.</p>
|
1719 | 1719 | <h2 class="heading settled" data-level="5" id="api"><span class="secno">5. </span><span class="content">API</span><a class="self-link" href="#api"></a></h2>
|
1720 | 1720 | <h3 class="heading settled" data-level="5.1" id="ambient-light-sensor-interface"><span class="secno">5.1. </span><span class="content">The AmbientLightSensor Interface</span><a class="self-link" href="#ambient-light-sensor-interface"></a></h3>
|
1721 |
| -<pre class="idl highlight def">[<dfn class="idl-code" data-dfn-for="AmbientLightSensor" data-dfn-type="constructor" data-export data-lt="AmbientLightSensor(sensorOptions)|AmbientLightSensor()" id="dom-ambientlightsensor-ambientlightsensor"><code><c- g>Constructor</c-></code><a class="self-link" href="#dom-ambientlightsensor-ambientlightsensor"></a></dfn>(<c- b>optional</c-> <a class="n" data-link-type="idl-name" href="https://w3c.github.io/sensors/#dictdef-sensoroptions" id="ref-for-dictdef-sensoroptions"><c- n>SensorOptions</c-></a> <dfn class="idl-code" data-dfn-for="AmbientLightSensor/AmbientLightSensor(sensorOptions)" data-dfn-type="argument" data-export id="dom-ambientlightsensor-ambientlightsensor-sensoroptions-sensoroptions"><code><c- g>sensorOptions</c-></code><a class="self-link" href="#dom-ambientlightsensor-ambientlightsensor-sensoroptions-sensoroptions"></a></dfn> = {}), <a class="idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#SecureContext" id="ref-for-SecureContext"><c- g>SecureContext</c-></a>, <a class="idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#Exposed" id="ref-for-Exposed"><c- g>Exposed</c-></a>=<c- n>Window</c->] |
| 1721 | +<pre class="idl highlight def">[<a class="idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#SecureContext" id="ref-for-SecureContext"><c- g>SecureContext</c-></a>, <a class="idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#Exposed" id="ref-for-Exposed"><c- g>Exposed</c-></a>=<c- n>Window</c->] |
1722 | 1722 | <c- b>interface</c-> <dfn class="dfn-paneled idl-code" data-dfn-type="interface" data-export id="ambientlightsensor"><code><c- g>AmbientLightSensor</c-></code></dfn> : <a class="n" data-link-type="idl-name" href="https://w3c.github.io/sensors/#sensor" id="ref-for-sensor①"><c- n>Sensor</c-></a> {
|
| 1723 | + <dfn class="idl-code" data-dfn-for="AmbientLightSensor" data-dfn-type="constructor" data-export data-lt="AmbientLightSensor(sensorOptions)|constructor(sensorOptions)|AmbientLightSensor()|constructor()" id="dom-ambientlightsensor-ambientlightsensor"><code><c- g>constructor</c-></code><a class="self-link" href="#dom-ambientlightsensor-ambientlightsensor"></a></dfn>(<c- b>optional</c-> <a class="n" data-link-type="idl-name" href="https://w3c.github.io/sensors/#dictdef-sensoroptions" id="ref-for-dictdef-sensoroptions"><c- n>SensorOptions</c-></a> <dfn class="idl-code" data-dfn-for="AmbientLightSensor/constructor(sensorOptions), AmbientLightSensor/constructor()" data-dfn-type="argument" data-export id="dom-ambientlightsensor-constructor-sensoroptions-sensoroptions"><code><c- g>sensorOptions</c-></code><a class="self-link" href="#dom-ambientlightsensor-constructor-sensoroptions-sensoroptions"></a></dfn> = {}); |
1723 | 1724 | <c- b>readonly</c-> <c- b>attribute</c-> <a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-double" id="ref-for-idl-double"><c- b>double</c-></a>? <dfn class="dfn-paneled idl-code" data-dfn-for="AmbientLightSensor" data-dfn-type="attribute" data-export data-readonly data-type="double?" id="dom-ambientlightsensor-illuminance"><code><c- g>illuminance</c-></code></dfn>;
|
1724 | 1725 | };
|
1725 | 1726 | </pre>
|
@@ -1810,6 +1811,8 @@ <h3 class="no-num no-ref heading settled" id="index-defined-here"><span class="c
|
1810 | 1811 | <li><a href="#dom-ambientlightsensor-ambientlightsensor">AmbientLightSensor(sensorOptions)</a><span>, in §5.1</span>
|
1811 | 1812 | <li><a href="#conformant-user-agent">conformant user agent</a><span>, in §10</span>
|
1812 | 1813 | <li><a href="#construct-an-ambient-light-sensor-object">Construct an ambient light sensor object</a><span>, in §6</span>
|
| 1814 | + <li><a href="#dom-ambientlightsensor-ambientlightsensor">constructor()</a><span>, in §5.1</span> |
| 1815 | + <li><a href="#dom-ambientlightsensor-ambientlightsensor">constructor(sensorOptions)</a><span>, in §5.1</span> |
1813 | 1816 | <li><a href="#current-light-level">current light level</a><span>, in §4</span>
|
1814 | 1817 | <li>
|
1815 | 1818 | illuminance
|
@@ -2034,8 +2037,9 @@ <h3 class="no-num no-ref heading settled" id="informative"><span class="content"
|
2034 | 2037 | <dd><a href="http://www.bipm.org/en/publications/si-brochure/">SI Brochure: The International System of Units (SI), 8th edition</a>. 2014. URL: <a href="http://www.bipm.org/en/publications/si-brochure/">http://www.bipm.org/en/publications/si-brochure/</a>
|
2035 | 2038 | </dl>
|
2036 | 2039 | <h2 class="no-num no-ref heading settled" id="idl-index"><span class="content">IDL Index</span><a class="self-link" href="#idl-index"></a></h2>
|
2037 |
| -<pre class="idl highlight def">[<a href="#dom-ambientlightsensor-ambientlightsensor"><code><c- g>Constructor</c-></code></a>(<c- b>optional</c-> <a class="n" data-link-type="idl-name" href="https://w3c.github.io/sensors/#dictdef-sensoroptions" id="ref-for-dictdef-sensoroptions②"><c- n>SensorOptions</c-></a> <a href="#dom-ambientlightsensor-ambientlightsensor-sensoroptions-sensoroptions"><code><c- g>sensorOptions</c-></code></a> = {}), <a class="idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#SecureContext" id="ref-for-SecureContext①"><c- g>SecureContext</c-></a>, <a class="idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#Exposed" id="ref-for-Exposed①"><c- g>Exposed</c-></a>=<c- n>Window</c->] |
| 2040 | +<pre class="idl highlight def">[<a class="idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#SecureContext" id="ref-for-SecureContext①"><c- g>SecureContext</c-></a>, <a class="idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#Exposed" id="ref-for-Exposed①"><c- g>Exposed</c-></a>=<c- n>Window</c->] |
2038 | 2041 | <c- b>interface</c-> <a href="#ambientlightsensor"><code><c- g>AmbientLightSensor</c-></code></a> : <a class="n" data-link-type="idl-name" href="https://w3c.github.io/sensors/#sensor" id="ref-for-sensor①①"><c- n>Sensor</c-></a> {
|
| 2042 | + <a href="#dom-ambientlightsensor-ambientlightsensor"><code><c- g>constructor</c-></code></a>(<c- b>optional</c-> <a class="n" data-link-type="idl-name" href="https://w3c.github.io/sensors/#dictdef-sensoroptions" id="ref-for-dictdef-sensoroptions②"><c- n>SensorOptions</c-></a> <a href="#dom-ambientlightsensor-constructor-sensoroptions-sensoroptions"><code><c- g>sensorOptions</c-></code></a> = {}); |
2039 | 2043 | <c- b>readonly</c-> <c- b>attribute</c-> <a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-double" id="ref-for-idl-double②"><c- b>double</c-></a>? <a data-readonly data-type="double?" href="#dom-ambientlightsensor-illuminance"><code><c- g>illuminance</c-></code></a>;
|
2040 | 2044 | };
|
2041 | 2045 |
|
|
0 commit comments