Re: [sensors] Device Proximity (was: Device light and proximity sensor)

On Thursday, 10 May 2012 at 16:48, Tran, Dzung D wrote:

> You are depending on the OS or proximity sensor device to give you this near/far value, otherwise the UAs need to interpret this near/far base on value, min and max. Are we going to specify in the spec how near/far are interpret. Is <= 50% means near and > 50% means far?

Depends on the range, I guess. If common sensors in the class of hardware this API is targeting only have a range of, say, 1-3cm, then they don't really have any practical application beyond on or off (near/far).   
>  
> Also, some notebooks and desktops are adding proximity sensor for detecting if there is user present. In this case near/far have different range.
>  

The same applies here. You are either near the laptop or not (or does "maybe near" or "really close" have a use case here?). The range would still only be limited to a few centimetres (~25-50cm).    

I would be interesting to explore how a developer copes with these two scenarios (laptop vs mobile phone). How do you see it working, as these are opposite cases? In one, a developer is disabling functionality because the user is "near" (e.g., turning off the screen). In the other case, you are enabling functionality because the user is "near" (e.g., turning on screen, presenting a login box).  

I know the above is application specific, but please try to generalise from there… it might be important to distinguish the intended function of a proximity sensor (...or not… would really like to hear more use cases to help think through this).   

--  
Marcos Caceres
http://datadriven.com.au

Received on Thursday, 10 May 2012 17:15:55 UTC