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

Re: [sensors] Should the enum SensorState have nosensor ?

From: Tobie Langel via GitHub <sysbot+gh@w3.org>
Date: Fri, 20 May 2016 18:42:10 +0000
To: public-device-apis@w3.org
Message-ID: <issue_comment.created-220686749-1463769729-sysbot+gh@w3.org>
Oh, that's interesting. I had imagined user permission would be 
triggered during construction (and would fire an "error" event should 
permission not be granted).

Might make sense to tie it to `.start()` instead. Especially if 
`.start()` return promises (pending #94).

The other option is for construction to trigger a sensor presence 
check and fire an error if it's missing.

GitHub Notification of comment by tobie
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/104#issuecomment-220686749 using
 your GitHub account
Received on Friday, 20 May 2016 18:42:11 UTC

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