WebIDLpedia

Magnetometer interface

Definition

Magnetometer defines Magnetometer

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

Methods and attributes that return objects implementing Magnetometer