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

RE: [Proximity] Proposal for addition field

From: Tran, Dzung D <dzung.d.tran@intel.com>
Date: Mon, 19 Nov 2012 02:10:47 +0000
To: Anssi Kostiainen <anssi.kostiainen@nokia.com>
CC: "DAP public-device-apis@w3.org" <public-device-apis@w3.org>
Message-ID: <84BCA539DD96614691177EDA3CE4FF0546C6C5DF@ORSMSX101.amr.corp.intel.com>

I don't particular have any example code for a web app, but here is my thought:

  If I have an optional field such as name and name = "front left" with near = true and name = "front center" with near = false and name = "front right" with near = false, then I know that the object is to the left of my screen. It is up to the OS to report the optional name parameter.

Dzung Tran

-----Original Message-----
From: Anssi Kostiainen [mailto:anssi.kostiainen@nokia.com] 
Sent: Wednesday, November 14, 2012 8:32 AM
To: Tran, Dzung D
Cc: DAP public-device-apis@w3.org
Subject: Re: [Proximity] Proposal for addition field

Hi Dzung,

On 13.11.2012, at 20.57, ext Tran, Dzung D wrote:

> For the proximity, I am proposing adding an additional field to indicate which proximity sensor is firing the event. There are some cases that a device has multiple proximity sensors, for instance in an automotive system. My Honda has multiple proximity sensors in its front and back bumpers. Also in tablet / ultrabook, you have a proximity sensor and also a camera that can also use as proximity device. Camera can detect user near / far as an proximity event.
> What do everyone think about adding a string field that indicate which proximity sensor into this spec?
> 	http://www.w3.org/TR/proximity/#device-proximity

Do you have a code example or two in mind to demonstrate how you'd actually use this in your web app?

I'm asking, because I don't see how an additional arbitrary string field could work.

Are there any native implementations from which we could learn from?

Received on Monday, 19 November 2012 02:11:31 UTC

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