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

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

From: Tobie Langel via GitHub <sysbot+gh@w3.org>
Date: Mon, 03 Apr 2017 08:45:16 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-291083201-1491209115-sysbot+gh@w3.org>
> 'I am idle, I am active' vs 'I idled the day away, I activated the washing machine.'

On the platform, change in state are reflected with an [INFINITIVE] event which changes the object to an [PAST-TENSE] state, e.g. "load" event -> "loaded" state, "activate" event -> "activated" state. That's why we're not using "active" as a state. Maybe "idle" isn't the right state name either, given that context.

> 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 :).

Well, you'll also get an "activated" event. That said, in the future, your first reading could be a cached reading, or it could also be a reading from your previous activation if we keep them around rather than replace them by `null` (there are arguments for both).

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

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