[whatwg] Device proximity and light events
JOSE MANUEL CANTERA FONSECA
jmcf at tid.es
Fri May 4 14:32:00 PDT 2012
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.
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:
> This spec is in process of revising. I am planning to update this in the next couple of days.
> -----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.
> I'd like feedback and to see if there was any interest in supporting these events in other UAs.
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
More information about the whatwg