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

Re: [sensors] Proximity Events

From: Dave Raggett <dsr@w3.org>
Date: Wed, 16 May 2012 20:36:27 +0100
Message-ID: <4FB401BB.2080705@w3.org>
To: public-device-apis@w3.org
On 16/05/12 19:56, Jonas Sicking wrote:
> Neither of these solutions seem acceptable to me. We should either:
> 
> * Add a on/off switch which allows the page to control if the property
> is being kept up to date. The switch would default to the "off" state.
> * Go with the same solution as the deviceproximity event.
> 
> I tend to think that the second solution is more consistent with other
> sensor solutions.

Perhaps we need to force an event for initialization purposes. The
sensor is only turned on when there is an event listener. When you add
an event listener the event is triggered to allow you to initialize your
app's behavior.

-- 
Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
Received on Wednesday, 16 May 2012 19:36:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 16 May 2012 19:36:54 GMT