Re: [ambient-light] What illuminance value should be reported for stopped sensor?

@tobie As I mentioned, I would like to avoid to have references to 
internal data of a sensor object. But either way is fine for me 
(cloning or making reference). I have no objections if getter will 
return latest reading and in next update local reference would be `!==
 sensor.getLatestReading()`. Maybe someone will find it even useful, 
e.g. cached value can be invalidated and updated with latest.

If you are planning to change Sensor.reading to 
sensor.getLatestReading(), semantics will be slightly different, for 
example, after stop() is called, should sensor.getLatestReading() 
return null? If not, what happens if permission is revoked.

Anyways, your explanation about how you want API to behave was helpful
 and few fixes need to be made to implementation to align with the 
spec. Thanks.

-- 
GitHub Notification of comment by alexshalamov
Please view or discuss this issue at 
https://github.com/w3c/ambient-light/issues/15#issuecomment-257514976 
using your GitHub account

Received on Tuesday, 1 November 2016 08:42:02 UTC