Magnetic Field Events: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: Line 17:
  [Constructor (DOMString type, optional DeviceMagneticFieldEventInit eventInitDict)]
  [Constructor (DOMString type, optional DeviceMagneticFieldEventInit eventInitDict)]
  interface DeviceMagneticFieldEvent : Event {
  interface DeviceMagneticFieldEvent : Event {
readonly attribute double x;
    readonly attribute double x;
readonly attribute double y;
    readonly attribute double y;
readonly attribute double z;
    readonly attribute double z;
  };
  };


  dictionary DeviceMagneticFieldEventInit : EventInit {
  dictionary DeviceMagneticFieldEventInit : EventInit {
double x;
    double x;
double y;
    double y;
double z;
    double z;
  };
  };



Revision as of 10:26, 21 November 2012

Introduction

Use cases

Conformance

Terminology

Security and privacy considerations

Magnetic Field

Attributes

DeviceMagneticFieldEvent Interface

[Constructor (DOMString type, optional DeviceMagneticFieldEventInit eventInitDict)]
interface DeviceMagneticFieldEvent : Event {
    readonly attribute double x;
    readonly attribute double y;
    readonly attribute double z;
};
dictionary DeviceMagneticFieldEventInit : EventInit {
    double x;
    double y;
    double z;
};

Attributes

x of type double, readonly

Ambient magnetic field in the X axis.

y of type double, readonly

Ambient magnetic field in the Y axis.

z of type double, readonly

Ambient magnetic field in the Z axis.

Dictionary DeviceMagneticFieldEventInit Members

x of type double

y of type double

z of type double

Event handlers

References