Revision 8177b07f1d519a0376f546fb7b3c0daf27ed17ce authored by kritisingh1 on 27 March 2018, 17:30:54 UTC, committed by kritisingh1 on 20 April 2018, 17:34:00 UTC
1 parent b4cd33a
Raw File
sensors.idl
[SecureContext, Exposed=Window]
interface Sensor : EventTarget {
  readonly attribute boolean activated;
  readonly attribute boolean hasReading;
  readonly attribute DOMHighResTimeStamp? timestamp;
  void start();
  void stop();
  attribute EventHandler onreading;
  attribute EventHandler onactivate;
  attribute EventHandler onerror;
};

dictionary SensorOptions {
  double frequency;
};

[Constructor(DOMString type, SensorErrorEventInit errorEventInitDict),
 SecureContext, Exposed=Window]
interface SensorErrorEvent : Event {
  readonly attribute DOMException error;
};

dictionary SensorErrorEventInit : EventInit {
  required DOMException error;
};
back to top