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

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 UTC