devicelight

  • Revision slug: DOM/Mozilla_event_reference/devicelight
  • Revision title: devicelight
  • Revision id: 366271
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment Moved From Mozilla_event_reference/devicelight to DOM/Mozilla_event_reference/devicelight

Revision Content

The devicelight event is fired when fresh data is available from a light sensor.

General info

Specification
Sensor
Interface
SensorCallback
Bubbles
No
Cancelable
No
Target
DefaultView (window)
Default Action
None

Properties

{{SensorCallbackProperties("ambient light in Lux")}}

Revision Source

<p>The <code>devicelight</code> event is fired when fresh data is available from a light sensor.</p>
<h2 id="General_info">General info</h2>
<dl>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Specification</dt>
  <dd style="margin: 0 0 0 120px;">
    <a class="external" href="http://dvcs.w3.org/hg/dap/raw-file/tip/sensor-api/Overview.html#datatypes">Sensor</a></dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Interface</dt>
  <dd style="margin: 0 0 0 120px;">
    SensorCallback</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Bubbles</dt>
  <dd style="margin: 0 0 0 120px;">
    No</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Cancelable</dt>
  <dd style="margin: 0 0 0 120px;">
    No</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Target</dt>
  <dd style="margin: 0 0 0 120px;">
    DefaultView (<code>window</code>)</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Default Action</dt>
  <dd style="margin: 0 0 0 120px;">
    None</dd>
</dl>
<h2 id="Properties">Properties</h2>
<p>{{SensorCallbackProperties("ambient light in Lux")}}</p>
Revert to this revision