[whatwg] Device proximity and light events

but you have the same issue as with motion and orientation which is that you cannot control the watch parameters for the sensor and the side effects of addEventListener
________________________________________
De: whatwg-bounces at lists.whatwg.org [whatwg-bounces at lists.whatwg.org] En nombre de Doug Turner [dougt at mozilla.com]
Enviado el: viernes, 04 de mayo de 2012 22:03
Para: Tran, Dzung D
CC: whatwg at whatwg.org
Asunto: Re: [whatwg] Device proximity and light events

I looked at the Sensor API.  I was hoping to have something very simple and lightweight.  I most likely will implement other sensor types in the same way - simple dom events with attributes that are specific to the event.  This is what we did for device motion and orientation, and it has worked out quite well.

Thanks!
Doug




On May 4, 2012, at 11:34 AM, Tran, Dzung D wrote:

> Hello Doug,
>
> Proximity and Light is currently in the Sensor API spec at:
>
> http://dvcs.w3.org/hg/dap/raw-file/tip/sensor-api/Overview.html
>
> This spec is in process of revising. I am planning to update this in the next couple of days.
>
> Thanks
> Tran
>
>
> -----Original Message-----
> From: whatwg-bounces at lists.whatwg.org [mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Doug Turner
> Sent: Friday, May 04, 2012 11:02 AM
> To: whatwg at whatwg.org
> Subject: [whatwg] Device proximity and light events
>
> I have added two new events to Firefox which allow web apps to detect light and proximity changes.
>
> http://dougturner.wordpress.com/2012/03/22/device-proximity-sensor/
> http://dougturner.wordpress.com/2012/03/26/device-light-sensor/
>
> I'd like feedback and to see if there was any interest in supporting these events in other UAs.
>
> Thanks
> Doug
>


Este mensaje se dirige exclusivamente a su destinatario. Puede consultar nuestra pol?tica de env?o y recepci?n de correo electr?nico en el enlace situado m?s abajo.
This message is intended exclusively for its addressee. We only send and receive email on the basis of the terms set out at
http://www.tid.es/ES/PAGINAS/disclaimer.aspx

Received on Friday, 4 May 2012 14:32:00 UTC