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

Re: [sensors] Sensor discovery

From: rektide via GitHub <sysbot+gh@w3.org>
Date: Mon, 10 Oct 2016 18:30:57 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-252702118-1476124256-sysbot+gh@w3.org>
Some existing examples of specs tackling discoverability:
* **[Gamepad 
API](https://w3c.github.io/gamepad/#navigator-interface-extension)** 
enumerates gamepads with `getGamepads()` and exposes 
`gamepadconnected` and `gamepaddisconnected` events.
* **[Media Capture and 
Streams](https://www.w3.org/TR/mediacapture-streams/#enumerating-devices)**
 has an `enumerateDevices()` that returns a promise of all devices, 
and exposes a `devicechange` event signalling any change, with no 
payload.

-- 
GitHub Notification of comment by rektide
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/7#issuecomment-252702118 using 
your GitHub account
Received on Monday, 10 October 2016 18:31:05 UTC

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