W3C home > Mailing lists > Public > public-device-apis@w3.org > May 2012

Re: [proximity] does it have a proximity sensor?

From: Marcos Caceres <w3c@marcosc.com>
Date: Sun, 20 May 2012 20:02:18 +0100
To: Doug Turner <dougt@mozilla.com>
Cc: public-device-apis@w3.org
Message-ID: <86A1366DA924456E9117186314A8C836@marcosc.com>

On Sunday, 20 May 2012 at 19:14, Doug Turner wrote:

> This also feels like a conversation we have already had.

Apologies for being a broken record. 
> There really is no way to really know if the proximity sensor is going to return a value. The proximity sensor might be present on a device, but never fire due to some hw bug or something. The only real way you'll know is if you get some change in the sensor.

> Similar to device orientation, motion, I do not want to have any "is device present" predicate in the API. If someone wants to build something through System API that allows you to query for device sensors - that's what I'd do.

Ok, can live with that. I guess it's easy to add later once there is some implementation experience and if more devs ask for it.  

Marcos Caceres
Received on Sunday, 20 May 2012 19:02:51 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:53:53 UTC