W3C home > Mailing lists > Public > public-device-apis-log@w3.org > March 2017

Re: [sensors] Find a better name for 'unconnected' state

From: Tobie Langel via GitHub <sysbot+gh@w3.org>
Date: Wed, 29 Mar 2017 19:28:07 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-290199159-1490815685-sysbot+gh@w3.org>
> When would a program write if (sensor.state === A) { ..., such that it would be distinct from if (sensor.state === D) { ...?

That's an interesting question.

Taking it one step further: is there a true difference between these two states?

State A (unactivated):
- the sensor is not running,
- we don't know whether there's an appropriate sensor to fullfill this request,
- we don't know if we'll be granted access to the sensor,

State D (deactivated):

-- 
GitHub Notification of comment by tobie
Please view or discuss this issue at https://github.com/w3c/sensors/issues/160#issuecomment-290199159 using your GitHub account
Received on Wednesday, 29 March 2017 19:28:13 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 12:18:52 UTC