WebIDLpedia

Accelerometer interface

Definition

Accelerometer defines Accelerometer

[SecureContext, Exposed=Window]
interface Accelerometer : Sensor {
  constructor(optional AccelerometerSensorOptions options = {});
  readonly attribute double? x;
  readonly attribute double? y;
  readonly attribute double? z;
};

Methods and attributes that return objects implementing Accelerometer

Referring IDL interfaces/dictionaries