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

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

From: Jonas Sicking <jonas@sicking.cc>
Date: Wed, 16 May 2012 11:49:39 -0700
Message-ID: <CA+c2ei94Q-MJiOvO7wxQDnLQS260P9B9cXORj_0ajrtnSbjFAA@mail.gmail.com>
To: Anssi Kostiainen <anssi.kostiainen@nokia.com>
Cc: "public-device-apis@w3.org public-device-apis@w3.org" <public-device-apis@w3.org>
On Tue, May 15, 2012 at 2:01 AM, Anssi Kostiainen
<anssi.kostiainen@nokia.com> wrote:
> Hi Jonas,
>
> On 11.5.2012, at 1.19, ext Jonas Sicking wrote:
>
>> I would also add a warning to
>> the "proximitysensor" event in the specification saying that different
>> devices will have different .min/.max values as well as different
>> resolution and if authors want to just detect "near"/"far" the other
>> event.
>
> I merged your proposal with the existing note on granularity as follows:
>
> [[
>
> The definition of granularity i.e. how often the event is fired is left to the implementation. Different devices may also support different minimum and maximum proximities as well as different resolution, thus authors are strongly advised not to assume near or far proximity solely based on the min and max attributes' values.
>
> ]]

I would rather end it with:

...thus authors are strongly advised to use the userproximity event
(or whatever we end up calling it) if you are only interested in
finding out if the user is near or far.

/ Jonas
Received on Wednesday, 16 May 2012 18:50:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 16 May 2012 18:50:42 GMT