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

Re: [sensors] granularity of Permission name for concrete/ fusion sensors

From: Tobie Langel via GitHub <sysbot+gh@w3.org>
Date: Tue, 08 Nov 2016 16:13:39 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-259180750-1478621617-sysbot+gh@w3.org>
> Hence, my suggestion is to agree on a consistent permission request 
style (either low-level OR high-level) for usability reasons.

Yes, I tend to agree, but this means we need a way to expose them so 
developers don't need to figure them out by reading the documentation.

E.g. as a prop on the sensor object or sensor class, e.g.

```js
Magnetometer.PERMISSIONS // ["magnetometer"]
Headtracker.PERMISSIONS  // ["magnetometer", "gyroscope", 
"accelerometer"]
```


-- 
GitHub Notification of comment by tobie
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/132#issuecomment-259180750 using
 your GitHub account
Received on Tuesday, 8 November 2016 16:13:46 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:53 UTC