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

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

From: Kenneth Rohde Christiansen via GitHub <sysbot+gh@w3.org>
Date: Mon, 03 Apr 2017 08:30:55 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-291080065-1491208253-sysbot+gh@w3.org>
'I am idle, I am active' vs 'I idled the day away, I activated the washing machine.'

> That's a good question. I'll give you another one: which states do you think the API consumers would like to know, and which state changes do you think they be interested in?

I guess most want to know whether something is running or not running, whether to call start or stop.

You know when it is active as you will get your first reading :).

I had the same issues before like, when I call start() I don't care if it is already started, I just want to make sure it will start as soon as possible, because I need it. Same with stop, just stop as soon as you can, whether you are running or not. I don't want an API where I am kind of forced to look at states, especially if these states are not 100% trustworthy.

-- 
GitHub Notification of comment by kenchris
Please view or discuss this issue at https://github.com/w3c/sensors/issues/160#issuecomment-291080065 using your GitHub account
Received on Monday, 3 April 2017 08:31:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:34:23 UTC