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

[proximity] Meaning of negative values

From: Chan Cathy (Nokia-CTO/Boston) <cathy.chan@nokia.com>
Date: Mon, 12 May 2014 17:51:10 +0000
To: "public-device-apis@w3.org" <public-device-apis@w3.org>
Message-ID: <c5620c155703486da26d879992ef8695@NOKWDCFIEXCH02P.nnok.nokia.com>
I'd imagine this would have been discussed, but can anyone remind me what a negative device proximity value mean? An object is detected at the "back" side of the device? 

[[
The current device proximity is a value that represents the proximity of the hosting device to a physical object (i.e., some value between the maximum sensing distance and the minimum sensing distance), in centimeters. 
The minimum sensing distance at which the sensor can detect a physical object, in centimeters. 
The maximum sensing distance at which the sensor can detect a physical object, in centimeters. 
]]

[[
The min attribute of the DeviceProximityEvent interface MUST return the value it was initialized to. When the object is created, this attribute MUST be initialized to negative Infinity. It represents the minimum sensing distance.
]]

Thanks.

- Cathy.
Received on Monday, 12 May 2014 17:52:10 UTC

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