[sensors] Split construction parameters and parameters that can be changed at runtime

alexshalamov has just created a new issue for 
https://github.com/w3c/sensors:

== Split construction parameters and parameters that can be changed at
 runtime ==
There are two types of information that might be required by the 
Sensor object: construction parameters that are persistent during the 
lifetime of a sensor and parameters that web developer can change 
after sensor is constructed. By moving SensorOptions to the start() 
method, Generic Sensor API would allow web developers to change e.g. 
frequency hint for the sensor without the need to re-construct the 
object.

Example:
```
// Construction parameters that are immutable during sensor's 
lifetime.
let gyro = new Gyroscope({uncalibrated: true});

// Platform selects default frequency hint.
gyro.start();
gyro.stop();

// Provide 30Hz frequency hint.
gyro.start({frequency: 30});
gyro.stop();
```

Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/139 using your GitHub account

Received on Thursday, 6 October 2016 09:22:36 UTC